getValue method

num? getValue(
  1. Nutrient nutrient
)

Returns the stored product nutrient's value.

Implementation

num? getValue(Nutrient nutrient) => _values[nutrient]?.value;