getCurrentPosition abstract method
Gets the current position.
samples - Number of location samples to average.
timeout - Maximum time to wait in milliseconds.
maximumAge - Maximum acceptable age of cached position.
persist - Whether to save the location to the database.
desiredAccuracy - Desired accuracy level.
extras - Additional data to attach to the location.
Implementation
Future<Location> getCurrentPosition({
int? samples,
int? timeout,
int? maximumAge,
bool? persist,
int? desiredAccuracy,
JsonMap? extras,
});