Returns the arithmetic mean of values in the stream.
final avg = IntStream.range(1, 5).average(); // 2.5
@override double average() { if (_source.isEmpty) { return 0.0; } return sum() / count(); }