Unit class
Constructors
Unit (dynamic name , {double ? value , String ? stringValue , String ? symbol })
The class that defines a unit of measurement object.
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
name
↔ dynamic
The name of the unit (e.g. LENGTH.meters, VOLUME.liters).
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
stringValue
↔ String ?
The String representation of value . It could be changed according to
other parameters of the property (e.g. significantFigures
,
removeTrailingZeros
and useScientificNotation
).
getter/setter pair
symbol
↔ String ?
The symbols that represent the unit (e.g. "m" stands for meters, "l"
stands for liter).
getter/setter pair
value
↔ double ?
The value of the unit of measurement.
getter/setter pair
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited