openPlaceAutocomplete function Null safety

Future<AutocompleteResult> openPlaceAutocomplete(
  1. PlaceOptions options
)

To open Place Autocomple widget

Implementation

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