GooglePlacePicker constructor

const GooglePlacePicker({
  1. required String apiKey,
  2. MapLocale mapLocale = MapLocale.english,
  3. dynamic getAddress(
    1. CompleteAddress
    )?,
  4. LatLng initialPosition = const LatLng(29.9773, 31.1325),
  5. bool enableMyLocationButton = true,
  6. bool enableSearchButton = true,
  7. Widget loader = const Center(child: CircularProgressIndicator(strokeWidth: 2.0)),
  8. Widget? doneButton,
  9. Widget? errorButton,
  10. double zoomFactor = 5.0,
  11. MarkerColor markerColor = MarkerColor.red,
  12. Key? key,
})

Implementation

const GooglePlacePicker({
  required this.apiKey,
  this.mapLocale = MapLocale.english,
  this.getAddress,
  this.initialPosition = const LatLng(29.9773, 31.1325),
  this.enableMyLocationButton = true,
  this.enableSearchButton = true,
  this.loader =
      const Center(child: CircularProgressIndicator(strokeWidth: 2.0)),
  this.doneButton,
  this.errorButton,
  this.zoomFactor = 5.0,
  this.markerColor = MarkerColor.red,
  Key? key,
}) : super(key: key);