LocationConfig class
Immutable configuration for location tracking.
All fields are final and cannot be changed after initialization. This ensures predictable behavior throughout the plugin lifecycle.
Constructors
- LocationConfig({required int timeIntervalSeconds, required LocationAccuracy accuracy, required bool enableBackground, double distanceFilterMeters = 0})
-
Creates a location tracking configuration.
const
Properties
- accuracy → LocationAccuracy
-
Desired accuracy level for location updates.
final
- distanceFilterMeters → double
-
Minimum distance in metres the device must move before an update is emitted.
final
- enableBackground → bool
-
Whether to enable background location tracking.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeIntervalSeconds → int
-
Minimum time interval in seconds between emissions.
Default: 2 seconds
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override