LocationSelectorWidget constructor
const
LocationSelectorWidget({
- Key? key,
- required Future<
List< onSearch(LocationSuggestionItem> >- String query
- required Future<
ResolvedLocation> onResolveSuggestion(), - required Future<
ResolvedLocation> onResolveGps(), - required FutureOr<
void> onLocationSelected(- ResolvedLocation location
- Future<
({double latitude, double longitude})?> onGetCurrentLocation()?, - void onError(
- String errorMessage
- String? initialQuery,
- bool enabled = true,
Implementation
const LocationSelectorWidget({
super.key,
required this.onSearch,
required this.onResolveSuggestion,
required this.onResolveGps,
required this.onLocationSelected,
this.onGetCurrentLocation,
this.onError,
this.initialQuery,
this.enabled = true,
});