Vehicle class

Constructors

Vehicle(RandomGenerator random)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
random RandomGenerator
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asVehicle() → VehicleYMM
Generates a random vehicle as a VehicleYMM object.
colorYearMakeModel() String
Generates a random vehicle's year, make, and model with a prefixed color.
make() String
Generates a random vehicle make.
model() String
Generates a random vehicle model.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
vehicle() Map<String, dynamic>
Generates a random vehicle's year, make and model as a map with keys and values.
vin() String
Generates a random (non-valid) vehicle VIN.
year() String
Generates a random vehicle year between 1940 and DateTime.now().year + 1.
yearMakeModel() String
Generates a random vehicle's year, make, and model.

Operators

operator ==(Object other) bool
The equality operator.
inherited