BusSpecifications class

Bus specifications contain vehicle related attributes.

Examples: height, weight, width. Only the fields that are set are considered for restriction handling.

Constructors

BusSpecifications([int? grossWeightInKilograms = null, int? heightInCentimeters = null, int? widthInCentimeters = null, int? lengthInCentimeters = null])
Creates a new instance.
BusSpecifications.withDefaults()
Creates a new instance.

Properties

grossWeightInKilograms ↔ int?
Total vehicle weight in kilograms. By default, it is not set.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
heightInCentimeters ↔ int?
Bus height in centimeters. By default, it is not set.
getter/setter pair
lengthInCentimeters ↔ int?
Bus length in centimeters. By default, it is not set.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
widthInCentimeters ↔ int?
Bus width in centimeters. By default, it is not set.
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.