ElectricBikeProfile class Routes & Navigation

eBike profile

Constructors

ElectricBikeProfile({ElectricBikeType type = ElectricBikeType.pedelec, double bikeMass = 0.0, double bikerMass = 0.0, double auxConsumptionDay = 0.0, double auxConsumptionNight = 0.0, bool ignoreLegalRestrictions = false})
Default constructor ElectricBikeProfile
ElectricBikeProfile.fromJson(Map<String, dynamic> json)
factory

Properties

auxConsumptionDay double
Bike auxiliary power consumption during day in Watts. If 0, a default value is used
getter/setter pair
auxConsumptionNight double
Bike auxiliary power consumption during night in Watts. If 0, a default value is used
getter/setter pair
bikeMass double
Bike mass in kg. If 0, a default value is used
getter/setter pair
bikerMass double
Biker mass in kg. If 0, a default value is used
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
ignoreLegalRestrictions bool
Ignore country based legal restrictions related to e-bikes
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ElectricBikeType
Ebike type
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 ElectricBikeProfile other) bool
The equality operator.
override