sum property
num
get
sum
The sum of the elements.
The sum is zero if the iterable is empty.
Implementation
num get sum {
num result = 0;
for (var value in this) {
result += value;
}
return result;
}