max method

  1. @Deprecated("use maxOrNull")
T? max()

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

Implementation

@Deprecated("use maxOrNull")
T? max() => maxOrNull();