LocationAccuracy class
Enum-like class representing location accuracy levels.
LocationAccuracy defines different accuracy levels for location updates, ranging from power-saving (less accurate) to navigation (most accurate). Higher accuracy levels consume more battery.
Available levels:
- POWERSAVE: Lowest accuracy, best battery life
- LOW: Low accuracy
- BALANCED: Balanced accuracy and battery consumption
- HIGH: High accuracy
- NAVIGATION: Highest accuracy, best for navigation (default)
Properties
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
Constants
- BALANCED → const LocationAccuracy
- Balanced accuracy and battery consumption.
- HIGH → const LocationAccuracy
- High accuracy mode.
- LOW → const LocationAccuracy
- Low accuracy mode.
- NAVIGATION → const LocationAccuracy
- Navigation mode with highest accuracy (default).
- POWERSAVE → const LocationAccuracy
- Power-saving mode with lowest accuracy.