IndexService class

Constructors

IndexService()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

getAllLoadIndices() Map<int, int>
Gibt eine Map aller unterstützten Load Indices mit Tragfähigkeiten zurück.
getAllSpeedIndices() Map<String, int>
Gibt eine Map aller unterstützten Speed Indices mit ihren Geschwindigkeiten zurück.
getSpeedInKmH(String speedIndex) int
Gibt die maximale Geschwindigkeit in km/h für den gegebenen Speed Index zurück. Gibt -1 zurück, wenn der Speed Index ungültig ist.
isValidLoadIndex(int loadIndex) bool
Prüft, ob ein Load Index gültig ist.
isValidSpeedIndex(String speedIndex) bool
Prüft, ob ein Speed Index gültig ist.
kmhToMph(int kmh) int
Wandelt km/h in mph um (ohne Nachkommastellen).
lbsToKg(int lbs) int
Wandelt lbs in kg um (ohne Nachkommastellen).
parseLoadIndexLbs(int loadIndex) int
Gibt die Tragfähigkeit in Pfund (lbs) für den angegebenen Load Index zurück. Gibt -1 zurück, wenn der Load Index ungültig ist.