getCurrentPosition abstract method

Future<Location> getCurrentPosition({
  1. int? samples,
  2. int? timeout,
  3. int? maximumAge,
  4. bool? persist,
  5. int? desiredAccuracy,
  6. JsonMap? extras,
})

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,
});