getUnit method

Unit? getUnit(
  1. Nutrient nutrient
)

Returns the unit of that nutrient.

See also: getValue, getModifier.

Implementation

Unit? getUnit(final Nutrient nutrient) =>
    UnitHelper.stringToUnit(jsonMap[_getUnitTag(nutrient)]);