UnitValue mixin

Mixin provides the ability for unit classes to convert a value to text or number with the desired accuracy.

Moreover, this standardizes our classes representing Temp, Speed, Pressure units.

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
value(double value, [int precision = 1]) double
Converts value to double with precision and Enum.
valueToString(double value, [int precision = 0]) String
Converts value to the minimum number of decimal places. Default to 0.

Operators

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