LocationOptions class
Represents different options to configure the quality and frequency of location updates.
Constructors
- LocationOptions({LocationAccuracy accuracy = LocationAccuracy.best, int distanceFilter = 0, bool forceAndroidLocationManager = false, int timeInterval = 0})
-
Initializes a new LocationOptions instance with default values.
const
Properties
- accuracy → LocationAccuracy
-
Defines the desired accuracy that should be used to determine the
location data.
final
- distanceFilter → int
-
The minimum distance (measured in meters) a device must move
horizontally before an update event is generated.
final
- forceAndroidLocationManager → bool
-
Forces the Geolocator plugin to use the legacy LocationManager instead of
the FusedLocationProviderClient (Android only).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeInterval → int
-
The desired interval for active location updates, in milliseconds
(Android only).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes the LocationOptions to a map message.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited