getNutrientValue method
Returns the value and unit of nutrient for perSize, or null.
Implementation
NutritionValue? getNutrientValue(Nutrient nutrient, PerSize perSize) =>
getNutritionValues(perSize)[nutrient];
Returns the value and unit of nutrient for perSize, or null.
NutritionValue? getNutrientValue(Nutrient nutrient, PerSize perSize) =>
getNutritionValues(perSize)[nutrient];