max method

int max(
  1. int other
)

Returns the maximum of this value and another.

Parameters:

  • other (int, required): Value to compare.

Returns: int — the larger value.

Implementation

int max(int other) => this > other ? this : other;