PortionHelper constructor

PortionHelper(
  1. List<OrderedNutrient> localizedNutrients,
  2. Product product,
  3. int grams
)

Implementation

PortionHelper(
  List<OrderedNutrient> localizedNutrients,
  this.product,
  this.grams,
) {
  _numberFormat = NumberFormat('####0.###', ProductQuery.getLocaleString());
  _populateFactoredNutrients(localizedNutrients);
}