sumAccountDataPrimaryAmount function

double sumAccountDataPrimaryAmount(
  1. List<AccountData> items
)

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

Implementation

double sumAccountDataPrimaryAmount(List<AccountData> items) =>
    sumOf<AccountData>(items, (item) => item.primaryAmount);