openPlacePicker function Null safety

Future<ReverseGeocodePlace> openPlacePicker(
  1. PickerOption options
)

To open Place Picker Widget

Implementation

Future<ReverseGeocodePlace> openPlacePicker(PickerOption options) async {
  final Map<String, dynamic> creationParams = <String, dynamic>{
    'options': options.toMap()
  };
  final String version =
      await _channel.invokeMethod('openPlacePicker', creationParams);
  return ReverseGeocodePlace.fromMap(json.decode(version));
}