ElectricBikeProfile constructor
Creates an ElectricBikeProfile with optional values.
Constructs an instance with sensible defaults if specific values are not provided. The defaults model a typical pedelec with no masses or auxiliary consumption specified.
Parameters
type- The e-bike drivetrain type. Defaults to ElectricBikeType.pedelec.bikeMass- The bike mass in kilograms. If 0, a default internal value may be used.bikerMass- The rider mass in kilograms. If 0, a default internal value may be used.auxConsumptionDay- Auxiliary power consumption during daytime in Watts. If 0, a default internal value may be used.auxConsumptionNight- Auxiliary power consumption during nighttime in Watts. If 0, a default internal value may be used.ignoreLegalRestrictions- When true, country-based legal restrictions related to e-bikes are ignored in routing.plateNumber- Vehicle plate number (inherited from VehicleRegistration).
Implementation
ElectricBikeProfile({
this.type = ElectricBikeType.pedelec,
this.bikeMass = 0.0,
this.bikerMass = 0.0,
this.auxConsumptionDay = 0.0,
this.auxConsumptionNight = 0.0,
this.ignoreLegalRestrictions = false,
super.plateNumber = '',
});