LocationPicker constructor

const LocationPicker(
  1. String apiKey, {
  2. Key? key,
  3. LatLng initialCenter = const LatLng(28.8993447, 76.6228793),
  4. double initialZoom = 40.0,
  5. bool requiredGPS = true,
  6. bool myLocationButtonEnabled = true,
  7. bool layersButtonEnabled = true,
  8. bool automaticallyAnimateToCurrentLocation = true,
  9. String? mapStylePath,
  10. Color appBarColor = Colors.blue,
  11. BoxDecoration? searchBarBoxDecoration,
  12. String? hintText,
  13. Widget resultCardConfirmIcon = const Icon(Icons.arrow_forward),
  14. Alignment resultCardAlignment = Alignment.bottomCenter,
  15. Decoration? resultCardDecoration,
  16. EdgeInsets resultCardPadding = const EdgeInsets.all(16.0),
  17. List<String> countries = const ["IN"],
  18. String language = 'en',
  19. LocationAccuracy desiredAccuracy = LocationAccuracy.bestForNavigation,
})

Implementation

const LocationPicker(
  this.apiKey, {
  Key? key,
  this.initialCenter = const LatLng(28.8993447, 76.6228793),
  this.initialZoom = 40.0,
  this.requiredGPS = true,
  this.myLocationButtonEnabled = true,
  this.layersButtonEnabled = true,
  this.automaticallyAnimateToCurrentLocation = true,
  this.mapStylePath,
  this.appBarColor = Colors.blue,
  this.searchBarBoxDecoration,
  this.hintText,
  this.resultCardConfirmIcon = const Icon(Icons.arrow_forward),
  this.resultCardAlignment = Alignment.bottomCenter,
  this.resultCardDecoration,
  this.resultCardPadding = const EdgeInsets.all(16.0),
  this.countries = const ["IN"],
  this.language = 'en',
  this.desiredAccuracy = LocationAccuracy.bestForNavigation,
}) : super(key: key);