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. String? selectText,
  11. String? outsideOfPickAreaText,
  12. ValueChanged<String>? onAutoCompleteFailed,
  13. ValueChanged<String>? onGeocodingSearchFailed,
  14. String? proxyBaseUrl,
  15. BaseClient? httpClient,
  16. SelectedPlaceWidgetBuilder? selectedPlaceWidgetBuilder,
  17. PinBuilder? pinBuilder,
  18. IntroModalWidgetBuilder? introModalWidgetBuilder,
  19. int autoCompleteDebounceInMilliseconds = 500,
  20. int cameraMoveDebounceInMilliseconds = 750,
  21. MapType initialMapType = MapType.normal,
  22. bool enableMapTypeButton = true,
  23. bool enableMyLocationButton = true,
  24. int myLocationButtonCooldown = 10,
  25. bool usePinPointingSearch = true,
  26. bool usePlaceDetailSearch = false,
  27. num? autocompleteOffset,
  28. num? autocompleteRadius,
  29. String? autocompleteLanguage,
  30. List<Component>? autocompleteComponents,
  31. List<String>? autocompleteTypes,
  32. bool? strictbounds,
  33. String? region,
  34. CircleArea? pickArea,
  35. bool selectInitialPosition = false,
  36. bool resizeToAvoidBottomInset = true,
  37. String? initialSearchString,
  38. bool searchForInitialValue = false,
  39. bool forceSearchOnZoomChanged = false,
  40. bool automaticallyImplyAppBarLeading = true,
  41. bool autocompleteOnTrailingWhitespace = false,
  42. bool hidePlaceDetailsWhenDraggingPin = true,
  43. bool ignoreLocationPermissionErrors = false,
  44. VoidCallback? onTapBack,
  45. dynamic onCameraMoveStarted(
    1. PlaceProvider
    )?,
  46. CameraPositionCallback? onCameraMove,
  47. dynamic onCameraIdle(
    1. PlaceProvider
    )?,
  48. dynamic onMapTypeChanged(
    1. MapType
    )?,
  49. bool zoomGesturesEnabled = true,
  50. bool zoomControlsEnabled = false,
})

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.selectText,
  this.outsideOfPickAreaText,
  this.onAutoCompleteFailed,
  this.onGeocodingSearchFailed,
  this.proxyBaseUrl,
  this.httpClient,
  this.selectedPlaceWidgetBuilder,
  this.pinBuilder,
  this.introModalWidgetBuilder,
  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.pickArea,
  this.selectInitialPosition = false,
  this.resizeToAvoidBottomInset = true,
  this.initialSearchString,
  this.searchForInitialValue = false,
  this.forceSearchOnZoomChanged = false,
  this.automaticallyImplyAppBarLeading = true,
  this.autocompleteOnTrailingWhitespace = false,
  this.hidePlaceDetailsWhenDraggingPin = true,
  this.ignoreLocationPermissionErrors = false,
  this.onTapBack,
  this.onCameraMoveStarted,
  this.onCameraMove,
  this.onCameraIdle,
  this.onMapTypeChanged,
  this.zoomGesturesEnabled = true,
  this.zoomControlsEnabled = false,
}) : super(key: key);