getPlacePredictions method

Future<AutocompleteResponse> getPlacePredictions(
  1. AutocompletionRequest? request, [
  2. void callback(
    1. List<AutocompletePrediction?>?,
    2. PlacesServiceStatus?
    )?
])

Implementation

Future<AutocompleteResponse> getPlacePredictions(
  AutocompletionRequest? request, [
  void Function(List<AutocompletePrediction?>?, PlacesServiceStatus?)?
      callback,
]) =>
    promiseToFuture(callMethod(this, 'getPlacePredictions', [
      request,
      callback == null
          ? null
          : allowInterop((p0, p1) => callback(
              p0?.cast<AutocompletePrediction?>(),
              PlacesServiceStatus$cast(p1)))
    ]));