sumBudgetDataPrimaryAmount function

double sumBudgetDataPrimaryAmount(
  1. List<BudgetData> items
)

Calculates the sum of the primary amounts of a list of BudgetData.

Implementation

double sumBudgetDataPrimaryAmount(List<BudgetData> items) =>
    sumOf<BudgetData>(items, (item) => item.primaryAmount);