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

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The numeric value representing this accuracy level.
final

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 mode with highest accuracy (default).
POWERSAVE → const LocationAccuracy
Power-saving mode with lowest accuracy.