sum property

double get sum

The sum of the elements.

The sum is zero if the iterable is empty.

Implementation

double get sum {
  var result = 0.0;
  for (var value in this) {
    result += value;
  }
  return result;
}