length library

Provides type-safe units for Length.

Import this file to use Length quantities and their extensions on num (like 10.m, 5.ft).

Classes

Length
Represents a quantity of length.
Quantity<T extends Unit<T>>
An abstract representation of a physical quantity, encapsulating a numerical value and a specific unit of measurement.
Unit<T extends Unit<T>>
A contract for all unit enums.

Enums

LengthUnit
Represents units of length.

Extensions

LengthCreation on num
Provides convenient factory methods for creating Length instances from num using shortened unit names where appropriate.
LengthValueGetters on Length
Provides convenient access to Length values in specific units using shortened unit names where appropriate.