max method

T max(
  1. T a,
  2. T b
)

Returns the maximum of the two arguments a and b.

Implementation

T max(T a, T b) => this(a, b) > 0 ? a : b;