maxLimit method

int maxLimit(
  1. int max
)

Implementation

int maxLimit(int max) {
  if (this > max) return max;
  return this;
}