Unit enum

Unit of measurement for nutrients

cf. get_unit_options_for_nutrient in https://github.com/openfoodfacts/openfoodfacts-server/blob/main/lib/ProductOpener/Nutrition.pm

Inheritance
Implemented types
Available extensions

Values

KCAL → const Unit
const Unit('kcal')
KJ → const Unit
const Unit('kJ')
G → const Unit
const Unit('g')
MILLI_G → const Unit
const Unit('mg')
MICRO_G → const Unit
const Unit('µg')
MILLI_L → const Unit
const Unit('ml')
L → const Unit
const Unit('liter')
PERCENT → const Unit
const Unit('%')
UNKNOWN → const Unit
const Unit('unknown')
PERCENT_VOL → const Unit
const Unit('% vol')
G_PER_KG → const Unit
const Unit('g/kg')
PERCENT_DV → const Unit
const Unit('% DV')
IU → const Unit
const Unit('IU')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
offTag → String
Identifying tag used in the rest of OFF.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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<Unit>
A constant List of the values in this enum, in order of their declaration.