ViolatedRestriction class

ViolatedRestriction contains all the violated restriction details for the planned trip.

Constructors

ViolatedRestriction(String cause, bool timeDependent)

Properties

cause ↔ String
Cause of the notice. Human readable description of the notice, for example "Route violates vehicle restriction". It will be EN-US text only.
getter/setter pair
details ViolatedRestrictionDetails?
The detailed information of restriction depending on the specific violation. For time dependent restriction or transport mode restriction, this property will be null. For vehicle restriction, the corresponding member will be set, for example, if the vehicle violates the maximum allowed gross weight for a specific route, the max_gross_weight_in_kilograms will be set with the maximum allowed gross weight for this route.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeDependent ↔ bool
Indicates that restriction depends on time.
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.