getCurrentLocation static method

Future<Position> getCurrentLocation()

Implementation

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