LocatorSettings class
Base class for platform-specific location tracking settings.
LocatorSettings provides common configuration options for location tracking that apply to both Android and iOS platforms. Platform-specific settings are provided by AndroidSettings and IOSSettings subclasses.
Example:
final settings = LocatorSettings(
accuracy: LocationAccuracy.HIGH,
distanceFilter: 10,
);
- Implementers
Constructors
- LocatorSettings({required LocationAccuracy accuracy, required double distanceFilter})
-
Creates a LocatorSettings instance.
const
Properties
- accuracy → LocationAccuracy
-
The accuracy level for location updates.
Default: LocationAccuracy.NAVIGATION
final
- distanceFilter → double
-
Minimum distance in meters between location updates.
Location updates are only triggered if the device moves at least
this distance from the last reported location.
Default: 0 meters (all updates are reported)
final
- 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