sumAsync method

Future<T> sumAsync()

Calculates the sum of all values. This only works for numeric values.

Implementation

Future<T> sumAsync() =>
    aggregateAsync<T>(Aggregation.sum).then((value) => value!);