getCurrentLocation static method
Implementation
static Future<Position> getCurrentLocation() async {
return await Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.bestForNavigation,
);
}
static Future<Position> getCurrentLocation() async {
return await Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.bestForNavigation,
);
}