KitLocation class

Location access wrapped around geolocator, with permission + service-enabled checks folded into one call so callers don't have to remember the three-step dance (service enabled? permission granted? permission denied forever?) every time.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

current({LocationAccuracy accuracy = LocationAccuracy.high}) Future<KitResult<KitLatLng>>
distanceMeters(KitLatLng a, KitLatLng b) double
track({LocationAccuracy accuracy = LocationAccuracy.high, int distanceFilterMeters = 10}) Stream<KitLatLng>
Live position stream — remember to cancel the subscription in dispose().