max method

E? max()

Returns the largest element or null if there are no elements.

All elements must be of type Comparable.

Implementation

E? max() => _minMax(1);