SpeedTier class

Configuration for a single speed tier.

Constructors

SpeedTier({required String name, required double minSpeedKph, required double maxSpeedKph, required int updateInterval, required int distanceFilter, required DesiredAccuracy accuracy})
Creates a speed tier.
const
SpeedTier.fromMap(JsonMap map)
Creates from a map.
factory

Properties

accuracy DesiredAccuracy
Desired accuracy for this tier.
final
distanceFilter int
Distance filter in meters.
final
hashCode int
The hash code for this object.
no setterinherited
maxSpeedKph double
Maximum speed for this tier in km/h.
final
minSpeedKph double
Minimum speed for this tier in km/h.
final
name String
Descriptive name for this tier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateInterval int
Update interval in seconds.
final

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited