min method

T min()

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

All elements must be of type Comparable.

Implementation

T min() => _minMax(-1);