getCurrentPosition method
Get the current position of the device
Implementation
Future<void> getCurrentPosition() async {
position = await Geolocator.getCurrentPosition(
locationSettings: const LocationSettings(
accuracy: LocationAccuracy.best,
),
);
debugPrint("LOCATION => ${position!.toJson()}");
isReady = position != null;
}