max method

T max()

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

All elements must be of type Comparable.

Implementation

T max() => _minMax(1);