getUserCurrentLocation method

Future<Position> getUserCurrentLocation()

Implementation

Future<Position> getUserCurrentLocation() async {
  await Geolocator.requestPermission().then((value){
  }).onError((error, stackTrace) async {
    await Geolocator.requestPermission();
    mirrorFlyLog("ERROR",error.toString());
  });
  return await Geolocator.getCurrentPosition();
}