sum method Null safety
Returns the sum of all elements in the collection.
The iterable must have at least one element.
Implementation
E sum() => (this ?? Iterable.empty()).reduce(add);
Returns the sum of all elements in the collection.
The iterable must have at least one element.
E sum() => (this ?? Iterable.empty()).reduce(add);