lastKnownPosition method

  1. @override
Future<LocationResult> lastKnownPosition({
  1. Duration? maxAge,
})
override

The newer of the OS's and the package's stored last known location (better accuracy wins when they are within 30 s), ignoring anything older than maxAge. noFix when there is none.

Implementation

@override
Future<LocationResult> lastKnownPosition({Duration? maxAge}) => _record(
  'lastKnownPosition',
  {'maxAge': maxAge},
  () => _impl.lastKnownPosition(maxAge: maxAge),
);