LocationDetectorWidget constructor

const LocationDetectorWidget({
  1. Key? key,
  2. LocationDetectorMode mode = LocationDetectorMode.both,
  3. dynamic onLocationChanged(
    1. LocationModel?
    )?,
  4. dynamic onAddressChanged(
    1. String
    )?,
  5. dynamic onCoordinatesChanged(
    1. double,
    2. double
    )?,
  6. LocationPickerTheme? theme,
  7. String? currentLocationHint,
  8. String? addressSearchHint,
  9. String currentLocationLabel = 'Current Location',
  10. String addressSearchLabel = 'Search Address',
  11. bool showCoordinates = true,
  12. bool showFullAddress = true,
  13. bool autoDetectOnInit = false,
  14. LocationAccuracy accuracy = LocationAccuracy.high,
  15. Duration? timeLimit,
  16. Widget? loadingWidget,
  17. Widget? errorWidget,
  18. String? localeIdentifier,
})

Implementation

const LocationDetectorWidget({
  super.key,
  this.mode = LocationDetectorMode.both,
  this.onLocationChanged,
  this.onAddressChanged,
  this.onCoordinatesChanged,
  this.theme,
  this.currentLocationHint,
  this.addressSearchHint,
  this.currentLocationLabel = 'Current Location',
  this.addressSearchLabel = 'Search Address',
  this.showCoordinates = true,
  this.showFullAddress = true,
  this.autoDetectOnInit = false,
  this.accuracy = LocationAccuracy.high,
  this.timeLimit,
  this.loadingWidget,
  this.errorWidget,
  this.localeIdentifier,
});