Speed class

Speed properties and conversion class

Defines a speed point with a speed value and type. The unit of the speed is set with unitSpeed and defaults to knots.

Constructors

Speed({required double value, required SpeedType type, SpeedUnit unitSpeed = SpeedUnit.kts})
Speed class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type SpeedType
final
unitSpeed SpeedUnit
final
value double
final

Methods

convertSpeed(SpeedUnit fromUnit, SpeedUnit toUnit) double
Covert Speed object to another unit as defined in toUnit. NOTE: method must be performed on the Speed object Example takes CAS from 148.7 knots to ft/sec: Speed(value: 148.7, type: SpeedType.cas).convertSpeed(SpeedUnit.fps);
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCAS(Atmo atAtmoPoint) double
Convert the speed to Calibrated Airspeed at a defined Atmo point atAtmoPoint. The converted speed unit is the same as the input speed unit.
toEAS(Atmo atAtmoPoint) double
Convert the speed to Equivalent Airspeed at a defined Atmo point atAtmoPoint. The converted speed unit is the same as the input speed unit.
toMach(Atmo atAtmoPoint) double
Convert the speed to Mach at a defined Atmo point atAtmoPoint.
toString() String
A string representation of this object.
override
toTAS(Atmo atAtmoPoint) double
Convert the speed to True Airspeed at a defined Atmo point atAtmoPoint. The converted speed unit is the same as the input speed unit.

Operators

operator ==(Object other) bool
The equality operator.
inherited