max<T extends Comparable<T>> function

T max<T extends Comparable<T>>(
  1. T a,
  2. T b
)

Returns the larger of two Comparables.

Implementation

T max<T extends Comparable<T>>(T a, T b) => a.compareTo(b) < 0 ? b : a;