CallBack Function with null safety

Issue I have a widget like this class googleMapComponent extends StatefulWidget { Function(LatLng pos) OnPositionChangeCallback; googleMapComponent({ this.OnPositionChangeCallback,}) using nullsafety i get this error The parameter ‘OnPositionChangeCallback’ can’t have a value of ‘null’ because of its type, but the implicit default

Continue reading