getCurrentPosition method

Future<void> getCurrentPosition()

Get the current position of the device

Implementation

Future<void> getCurrentPosition() async {
  position = await Geolocator.getCurrentPosition(
    desiredAccuracy: LocationAccuracy.best,
  );
  debugPrint("LOCATION => ${position!.toJson()}");
  isReady = position != null;
}