TruckProfile class Routes & Navigation

Truck routing profile

Inheritance

Constructors

TruckProfile({int height = 0, int length = 0, int width = 0, int axleLoad = 0, double maxSpeed = 0, int mass = 0, FuelType fuel = FuelType.diesel})
Truck profile constructor with predefined FT_Diesel as fuel type.
TruckProfile.fromJson(Map<String, dynamic> json)
factory

Properties

axleLoad int
Truck axle load in kg. By default it is 0 and is not considered in routing
getter/setter pair
fuel FuelType
Engine fuel type. Default is petrol
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
height int
Truck height in cm. By default it is 0 and is not considered in routing
getter/setter pair
length int
Truck length in cm. By default it is 0 and is not considered in routing
getter/setter pair
mass int
Vehicle mass in kg. By default it is 0 and is not considered in routing
getter/setter pairinherited
maxSpeed double
Vehicle max speed in m/s. By default it is 0 and is not considered in routing
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Truck width in cm. By default it is 0 and is not considered in routing
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant TruckProfile other) bool
The equality operator.
override