SpecificRestriction class
Represents a specific vehicle restriction.
A SpecificRestriction defines what type of restriction applies (weight, height, etc.)
and the range of allowed values. It is always used as part of a VehicleRestriction.
Note: This is a beta release of this feature. Related APIs may change for new releases without a deprecation process.
Constructors
- SpecificRestriction(RestrictionType type, IntegerRange value)
- Creates a new instance.
Properties
- hashCode → int
-
The hash code for this object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ RestrictionType
-
Type of restriction.
getter/setter pair
- value ↔ IntegerRange
-
Values for which the restriction applies.
Examples:
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.