sum method

dynamic sum(
  1. List list
)

Implementation

sum(List list) {
  var sums = flatten(list).reduce((a, b) => a + b);
  return sums;
}