FoodRecordListExtension extension

Extension to calculate the sum of nutritional values for a list of FoodRecord objects.

on

Properties

caloriesSum double

Available on List<FoodRecord>, provided by the FoodRecordListExtension extension

Calculates the sum of calories for all food records in the list.
no setter
carbsSum double

Available on List<FoodRecord>, provided by the FoodRecordListExtension extension

Calculates the sum of carbohydrates for all food records in the list.
no setter
fatSum double

Available on List<FoodRecord>, provided by the FoodRecordListExtension extension

Calculates the sum of fats for all food records in the list.
no setter
proteinSum double

Available on List<FoodRecord>, provided by the FoodRecordListExtension extension

Calculates the sum of proteins for all food records in the list.
no setter