BikeProfileElectricBikeProfile class Routes & Navigation

Bike and electric bike routing profile.

Container used to select a standard bike profile or an electric-bike profile for routing. The profile field selects the general cycling behaviour (city, road, etc.) while eProfile holds optional electric-specific parameters.

Constructors

BikeProfileElectricBikeProfile({BikeProfile profile = BikeProfile.city, ElectricBikeProfile? eProfile})
Creates a container for bike/e-bike profile selection.
BikeProfileElectricBikeProfile.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create an instance.
factory

Properties

eProfile ElectricBikeProfile?
Selected e-bike profile.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
profile BikeProfile
Selected bike profile. Default is BikeProfile.city.
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
toJson() Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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