sum property
Coral<E>
get
sum
Returns the sum of the elements in this collection.
Implementation
Coral<E> get sum => coral.map((source) {
final val = source.sum;
if (val is E) return val;
if (E == double) return val.toDouble() as E;
return val.toInt() as E;
});