getLastKnownPosition method
Get the best most recent location currently available.
If a location is not available, which should happen very rarely, null will
be return. The best accuracy available while respecting the location
permissions will be returned.
- Throws a PermissionDeniedException when user has not approved access.
- Throws a LocationServiceDisabledException when the user allowed access, but the location services of the device are disabled.
Implementation
Future<Position?> getLastKnownPosition({bool forceLocationManager = false}) {
throw UnimplementedError(
'getLastKnownPosition() has not been implemented.');
}