WeightUnit enum
Defines supported units of weight.
Constructors
- WeightUnit()
-
const
Values
- nanogram → const WeightUnit
-
A unit representing nanograms.
- microgram → const WeightUnit
-
A unit representing micrograms.
- milligram → const WeightUnit
-
A unit representing milligrams.
- gram → const WeightUnit
-
A unit representing grams.
- ounce → const WeightUnit
-
A unit representing ounces.
- pound → const WeightUnit
-
A unit representing pounds.
- kilogram → const WeightUnit
-
A unit representing kilograms.
- usTon → const WeightUnit
-
A unit representing US tons, also known as a "short ton" or, coloquially, a "ton".
- tonne → const WeightUnit
-
A unit representing (metric) tonnes.
- imperialTon → const WeightUnit
-
A unit representing imperial tons, also known as a "long ton" or "displacement ton".
- megatonne → const WeightUnit
-
A unit representing megatonnes.
- gigatonne → const WeightUnit
-
A unit representing gigatonnes.
Properties
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
Constants
-
values
→ const List<
WeightUnit> - A constant List of the values in this enum, in order of their declaration.