total property

num get total

Get total from list of num

Implementation

num get total {
  num t = 0;
  if (isNotNullAndEmpty) {
    for (var e in (this ?? [])) {
      t += e;
    }
  }
  return t;
}