limitLow method

int limitLow(
  1. int min
)

Restrict value from min.

Implementation

int limitLow(int min) {
  if (this < min) {
    return min;
  }
  return this;
}