TruckRestrictionWarning class
Represents truck restrictions.
For example, there can be a bridge ahead not high enough to pass a big truck or there can be a road ahead where the truck’s weight exceeds the permissible limit.
Constructors
- TruckRestrictionWarning(double distanceInMeters, DistanceType distanceType)
Properties
- axleCount ↔ IntegerRange?
-
The axle count for which the current restriction applies.
If this field is
null, the restriction does not depend on axle count.getter/setter pair - dimensionRestriction ↔ DimensionRestriction?
-
Vehicle dimension restrictions.
It is
nullwhen there is no known dimension restriction ahead.getter/setter pair - distanceInMeters ↔ double
-
The distance from the current location to the restriction.
getter/setter pair
- distanceType ↔ DistanceType
-
Indicates if the specified truck restriction is ahead of the vehicle or has just passed by. If it is ahead, then TruckRestrictionWarning.distanceInMeters is greater than 0.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
-
hazardousMaterials
↔ List<
HazardousMaterial> -
The list of hazardous materials which are restricted on the road section for which the warning applies.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeRule ↔ TimeRule?
-
Time rule indicating the time periods for which the restriction applies.
If the field is 'null' then the restriction is applicable at anytime.
getter/setter pair
- trailerCount ↔ IntegerRange?
-
The trailer count for which the current restriction applies.
If the field is 'null' then the current restriction does not have a condition based on trailers count.
getter/setter pair
- truckRoadType ↔ TruckRoadType?
-
Truck road type restriction.
getter/setter pair
- tunnelCategory ↔ TunnelCategory?
-
Tunnel category.
getter/setter pair
- weightRestriction ↔ WeightRestriction?
-
Weight restriction.
It is
nullwhen there is no known weight restriction ahead.getter/setter pair
Methods
-
isGeneral(
) → bool - Checks if this truck restriction warning is general.
-
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.