Calculates the average of all values. This only works for numeric values.
Future<double> averageAsync() => aggregateAsync<double>(Aggregation.average) .then((value) => value ?? double.nan);