getForPortion

fun getForPortion(portion: Measurement): Measurement?

Calculates the nutriment value for a given amount of this product. For example, calling getForAnyValue(1, "kg") will give you the amount of this nutriment given 1 kg of the product.

Return

a nutrient measurement for a the given amount of this product

Parameters

portion

a measurement of the portion