MapLocationPicker constructor

MapLocationPicker(
  1. String apiKey, {
  2. Key? key,
  3. String languageCode = 'en_us',
  4. String nearBy = 'Nearby Places',
  5. String findingPlace = 'Finding place...',
  6. String noResultsFound = 'No results found',
  7. String unnamedLocation = 'Unnamed location',
  8. String tapToSelectLocation = 'Tap to select this location',
  9. String autoCompleteRegion = '',
  10. String autoCompleteComponents = '',
  11. bool autoTheme = false,
  12. LatLng? displayLocation,
  13. LatLng? defaultLocation,
})

Implementation

MapLocationPicker(this.apiKey,
    {super.key,
    this.languageCode = 'en_us',
    this.nearBy = 'Nearby Places',
    this.findingPlace = 'Finding place...',
    this.noResultsFound = 'No results found',
    this.unnamedLocation = 'Unnamed location',
    this.tapToSelectLocation = 'Tap to select this location',
    this.autoCompleteRegion = '',
    this.autoCompleteComponents = '',
    this.autoTheme = false,
    this.displayLocation,
    LatLng? defaultLocation}) {
  if (defaultLocation != null) {
    this.defaultLocation = defaultLocation;
  }
}