getLastKnownPosition method

Future<Position?> getLastKnownPosition({
  1. bool forceLocationManager = false,
})

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.

Implementation

Future<Position?> getLastKnownPosition({bool forceLocationManager = false}) {
  throw UnimplementedError(
      'getLastKnownPosition() has not been implemented.');
}