A maximal element of the iterable.
If any element is NaN, the result is NaN.
The iterable must not be empty.
double get max => maxOrNull ?? (throw StateError('No element'));