sum method

double sum()

Returns the sum of the values in the iterable.

Implementation

double sum() => cast<num?>().sum().toDouble();