lastKnownLocation property
The last known location obtained by the LocationEngine. It is persisted throughout the app's lifecycle.
This property can be obtained without starting the LocationEngine. However, the initial value might be null
if no location has ever been obtained by the LocationEngine.
The time attribute of the Location object indicates when the last location was obtained.
Note: In order to receive continuous location updates, add a LocationListener.
Gets the last known location obtained by the LocationEngine. It is persisted throughout the app's lifecycle.
Implementation
Location? get lastKnownLocation;