maxLimit method

double maxLimit(
  1. double max
)

Implementation

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