MotorVehicleProfile class Routes & Navigation

Motor vehicle profile.

This is a base class for car and truck profiles

Implementers

Constructors

MotorVehicleProfile({int mass = 0, double maxSpeed = 0, FuelType fuel = FuelType.petrol})

Properties

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

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.
inherited