addStrList static method

Decimal addStrList(
  1. List<String?> aList
)

Sums a list of nullable strings representing numbers

Implementation

static Decimal addStrList(List<String?> aList) {
  return aList.map((e) => _safeParse(e)).fold(Decimal.zero, (a, b) => a + b);
}