SpeedLimitsPolicy class abstract

Implemented types

Constructors

SpeedLimitsPolicy()

Properties

hashCode int
The hash code for this object.
no setterinherited
legalSpeedLimits SpeedLimits
For example for Russia 60/90/110 km/h
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speedLimitsRules SpeedLimitsRules
no setter

Methods

customSpeedLimits(double toleranceRatio) SpeedLimits
For example ratio = 0.8 and current speed limit is 60 km/h - for Russia: enforcement tolerance is 20 km/h for all speed limits => we should start warning the user when current speed > 60 + 20 * 0.8 = 76 km/h - for Turkey: enforcement tolerance is 10 percent over the speed limit => we should start warning the user when current speed > 60 + 60 * 0.1 * 0.8 = 64.8 km/h
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