getCurrentPosition method
Get a single current location fix on the device.
Unlike getLastKnownPosition that returns a cached location, this method
could cause active location computation on the device. If the device
location can be determined within reasonable time(tens of seconds),
otherwise null will be return
- 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?> getCurrentPosition({bool forceLocationManager = false}) {
throw UnimplementedError('getCurrentPosition() has not been implemented.');
}