currentLocation property
Future<Position>
currentLocation
Returns the current devices's position. If overridden, this will return
the overriden value. Otherwise, it will return the value from the
Geolocator
.
Implementation
Future<Position> get currentLocation => overriddenLocation == null
? Geolocator.getCurrentPosition()
: Future.value(overriddenLocation);