quantities library Null safety

Classes

Quantity
Unit
UnitPrefix

Extensions

NumToQuantity

Constants

centi → const UnitPrefix
UnitPrefix._(1 / 100, 'c')
deci → const UnitPrefix
UnitPrefix._(1 / 10, 'd')
kilo → const UnitPrefix
UnitPrefix._(1000, 'k')
micro → const UnitPrefix
UnitPrefix._(1 / 1000000, 'μ')
milli → const UnitPrefix
UnitPrefix._(1 / 1000, 'm')

Properties

day → NonDerivedUnit
Unit of time; 1 d = 24 h.
final
gram → NonDerivedUnit
Base unit of mass (note that the kilogram is the standard unit of mass in SI, NOT the gram).
final
hour → NonDerivedUnit
Unit of time; 1 hr = 3600 s.
final
inch → NonDerivedUnit
Unit of length; 1 in. = 0.0254 m.
final
liter → NonDerivedUnit
Unit of volume, 1 L = 0.001 m^3.
final
meter → NonDerivedUnit
Base unit of length.
final
mole → NonDerivedUnit
Base unit for amount of substance.
final
month → NonDerivedUnit
Unit of time; 1 mo = 30.436875 d.
final
pound → NonDerivedUnit
Unit of mass; 1 lb = 453.59237 g.
final
second → NonDerivedUnit
Base unit of time.
final
squareMeter Unit
Unit of area.
final
week → NonDerivedUnit
Unit of time; 1 wk = 7 d.
final
year → NonDerivedUnit
Unit of time; 1 yr = 12 mo.
final