PlaceAutocomplete constructor

PlaceAutocomplete({
  1. Key? key,
  2. dynamic onSelected(
    1. Place selection
    )?,
  3. required String apiKey,
  4. PlaceAutocompleteRequestOptions? options,
  5. int? debounceDelay,
  6. InputDecoration? decoration,
  7. Widget optionsViewBuilder(
    1. BuildContext context,
    2. void onSelected(
      1. PlaceAutocompletePrediction
      ),
    3. Iterable<PlaceAutocompletePrediction> options
    )?,
  8. Client? client,
})

Implementation

PlaceAutocomplete({
  super.key,
  this.onSelected,
  required this.apiKey,
  this.options,
  this.debounceDelay,
  this.decoration,
  this.optionsViewBuilder,
  http.Client? client,
}) : client = client ?? http.Client();