SafetyCameraWarning class
A class that provides safety camera warning information.
Constructors
- SafetyCameraWarning(double distanceToCameraInMeters, double speedLimitInMetersPerSecond, SafetyCameraType type, DistanceType distanceType)
Properties
- distanceToCameraInMeters ↔ double
-
Distance to the safety camera in meters.
getter/setter pair
- distanceType ↔ DistanceType
-
The distance type of the warning (e.g.: warning for a new safety camera ahead, warning for
passing a safety camera). Since the safety camera warning is given relative to a single
position on the route, DistanceType.reached will never be given for this warning.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- id ↔ int
-
Unique identifier for this specific safety camera warning instance.
Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace.
Use this ID to track, update, or dismiss individual warning instances of this type.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speedLimitInMetersPerSecond ↔ double
-
The speed limit observed by the safety camera.
getter/setter pair
- type ↔ SafetyCameraType
-
The type of the safety camera element.
getter/setter pair
Methods
-
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.