LocationDetectorWidget constructor
const
LocationDetectorWidget({
- Key? key,
- LocationDetectorMode mode = LocationDetectorMode.both,
- dynamic onLocationChanged()?,
- dynamic onAddressChanged()?,
- dynamic onCoordinatesChanged()?,
- LocationPickerTheme? theme,
- String? currentLocationHint,
- String? addressSearchHint,
- String currentLocationLabel = 'Current Location',
- String addressSearchLabel = 'Search Address',
- bool showCoordinates = true,
- bool showFullAddress = true,
- bool autoDetectOnInit = false,
- LocationAccuracy accuracy = LocationAccuracy.high,
- Duration? timeLimit,
- Widget? loadingWidget,
- Widget? errorWidget,
- 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,
});