CanonicalUnit class final

Represents a unit with the value and measurement separated.

Available extensions

Constructors

CanonicalUnit({required String unit, required double value})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit String
The unit of measurement.
final
value double
The numerical value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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