Unit<T extends Unit<T>> class abstract

A contract for all unit enums.

Each unit enum (e.g., PressureUnit, LengthUnit) must implement this interface to provide a way to get a conversion factor to another unit of the same type.

T is the specific unit enum type itself (e.g., PressureUnit).

Constructors

Unit()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
A human-readable symbol or abbreviation for the unit.
no setter

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