LocationAccuracy enum
Represent the possible location accuracy values.
Values
- lowest → const LocationAccuracy
-
Location is accurate within a distance of 3000m on iOS and 500m on Android.
On Android, corresponds to PRIORITY_PASSIVE.
- low → const LocationAccuracy
-
Location is accurate within a distance of 1000m on iOS and 500m on Android.
On Android, corresponds to PRIORITY_LOW_POWER.
- medium → const LocationAccuracy
-
Location is accurate within a distance of 100m on iOS and between 100m and 500m on Android.
On Android, corresponds to PRIORITY_BALANCED_POWER_ACCURACY.
- high → const LocationAccuracy
-
Location is accurate within a distance of 10m on iOS and between 0m and 100m on Android.
On Android, corresponds to PRIORITY_HIGH_ACCURACY.
- best → const LocationAccuracy
-
Location is accurate within a distance of ~0m on iOS and between 0m and 100m on Android.
On Android, corresponds to PRIORITY_HIGH_ACCURACY.
-
Location accuracy is optimized for navigation on iOS and matches the LocationAccuracy.best on Android.
On Android, corresponds to PRIORITY_HIGH_ACCURACY.
- reduced → const LocationAccuracy
-
Location accuracy is reduced for iOS 14+ devices, matches the LocationAccuracy.lowest on iOS 13 and below and all other platforms.
On Android, corresponds to PRIORITY_PASSIVE.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
LocationAccuracy> - A constant List of the values in this enum, in order of their declaration.