FoodRecordListExtension extension
Extension to calculate the sum of nutritional values for a list of FoodRecord objects.
- on
Properties
- caloriesSum → double
-
Available on List<
Calculates the sum of calories for all food records in the list.FoodRecord> , provided by the FoodRecordListExtension extensionno setter - carbsSum → double
-
Available on List<
Calculates the sum of carbohydrates for all food records in the list.FoodRecord> , provided by the FoodRecordListExtension extensionno setter - fatSum → double
-
Available on List<
Calculates the sum of fats for all food records in the list.FoodRecord> , provided by the FoodRecordListExtension extensionno setter - proteinSum → double
-
Available on List<
Calculates the sum of proteins for all food records in the list.FoodRecord> , provided by the FoodRecordListExtension extensionno setter