CarProfile class Routes & Navigation

Car routing profile

Inheritance

Constructors

CarProfile({int mass = 0, FuelType fuel = FuelType.petrol, double maxSpeed = 0.0})
Car profile constructor with predefined FuelType.petrol as fuel type.
CarProfile.fromJson(Map<String, dynamic> json)
factory

Properties

fuel FuelType
Engine fuel type. Default is petrol
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
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

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 CarProfile other) bool
The equality operator.
override