sumBillDataPrimaryAmount function

double sumBillDataPrimaryAmount(
  1. List<BillData> items
)

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

Implementation

double sumBillDataPrimaryAmount(List<BillData> items) =>
    sumOf<BillData>(items, (item) => item.primaryAmount);