AdaptiveSettings class
Calculated adaptive settings based on current conditions.
Constructors
- AdaptiveSettings({required double distanceFilter, required DesiredAccuracy desiredAccuracy, required int heartbeatInterval, required bool gpsEnabled, required String reason})
-
Creates adaptive settings.
const
Properties
- desiredAccuracy → DesiredAccuracy
-
Recommended accuracy level.
final
- distanceFilter → double
-
Recommended distance filter in meters.
final
- gpsEnabled → bool
-
Whether GPS should be enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heartbeatInterval → int
-
Recommended heartbeat interval in seconds.
final
- reason → String
-
Reason for these settings.
final
- 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
-
toMap(
) → JsonMap - Converts to a JSON-serializable map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited