PlacePicker constructor

PlacePicker({
  1. Key? key,
  2. required String apiKey,
  3. ValueChanged<PickResult>? onPlacePicked,
  4. required LatLng initialPosition,
  5. bool? useCurrentLocation,
  6. LocationAccuracy desiredLocationAccuracy = LocationAccuracy.high,
  7. MapCreatedCallback? onMapCreated,
  8. String? hintText,
  9. String? searchingText,
  10. ValueChanged<String>? onAutoCompleteFailed,
  11. ValueChanged<String>? onGeocodingSearchFailed,
  12. String? proxyBaseUrl,
  13. BaseClient? httpClient,
  14. SelectedPlaceWidgetBuilder? selectedPlaceWidgetBuilder,
  15. PinBuilder? pinBuilder,
  16. int autoCompleteDebounceInMilliseconds = 500,
  17. int cameraMoveDebounceInMilliseconds = 750,
  18. MapType initialMapType = MapType.normal,
  19. bool enableMapTypeButton = true,
  20. bool enableMyLocationButton = true,
  21. int myLocationButtonCooldown = 10,
  22. bool usePinPointingSearch = true,
  23. bool usePlaceDetailSearch = false,
  24. num? autocompleteOffset,
  25. num? autocompleteRadius,
  26. String? autocompleteLanguage,
  27. List<Component>? autocompleteComponents,
  28. List<String>? autocompleteTypes,
  29. bool? strictbounds,
  30. String? region,
  31. bool selectInitialPosition = false,
  32. bool resizeToAvoidBottomInset = true,
  33. String? initialSearchString,
  34. bool searchForInitialValue = false,
  35. bool forceAndroidLocationManager = false,
  36. bool forceSearchOnZoomChanged = false,
  37. bool automaticallyImplyAppBarLeading = true,
  38. bool autocompleteOnTrailingWhitespace = false,
  39. bool hidePlaceDetailsWhenDraggingPin = true,
})

Implementation

PlacePicker({
  Key? key,
  required this.apiKey,
  this.onPlacePicked,
  required this.initialPosition,
  this.useCurrentLocation,
  this.desiredLocationAccuracy = LocationAccuracy.high,
  this.onMapCreated,
  this.hintText,
  this.searchingText,
  // this.searchBarHeight,
  // this.contentPadding,
  this.onAutoCompleteFailed,
  this.onGeocodingSearchFailed,
  this.proxyBaseUrl,
  this.httpClient,
  this.selectedPlaceWidgetBuilder,
  this.pinBuilder,
  this.autoCompleteDebounceInMilliseconds = 500,
  this.cameraMoveDebounceInMilliseconds = 750,
  this.initialMapType = MapType.normal,
  this.enableMapTypeButton = true,
  this.enableMyLocationButton = true,
  this.myLocationButtonCooldown = 10,
  this.usePinPointingSearch = true,
  this.usePlaceDetailSearch = false,
  this.autocompleteOffset,
  this.autocompleteRadius,
  this.autocompleteLanguage,
  this.autocompleteComponents,
  this.autocompleteTypes,
  this.strictbounds,
  this.region,
  this.selectInitialPosition = false,
  this.resizeToAvoidBottomInset = true,
  this.initialSearchString,
  this.searchForInitialValue = false,
  this.forceAndroidLocationManager = false,
  this.forceSearchOnZoomChanged = false,
  this.automaticallyImplyAppBarLeading = true,
  this.autocompleteOnTrailingWhitespace = false,
  this.hidePlaceDetailsWhenDraggingPin = true,
}) : super(key: key);