GooglePlacePicker constructor
const
GooglePlacePicker({
- required String apiKey,
- MapLocale mapLocale = MapLocale.english,
- dynamic getAddress()?,
- LatLng initialPosition = const LatLng(29.9773, 31.1325),
- bool enableMyLocationButton = true,
- bool enableSearchButton = true,
- Widget loader = const Center(child: CircularProgressIndicator(strokeWidth: 2.0)),
- Widget? doneButton,
- Widget? errorButton,
- double zoomFactor = 5.0,
- MarkerColor markerColor = MarkerColor.red,
- 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);