limitWithin method

double limitWithin(
  1. double minValue,
  2. double maxValue
)

Determines the minimum and maximum limitation of two values. If this value is between {minValue} and {maxValue}, this value is returned. If this value is smaller than {minvalue}, {minvalue} is returned. If this value is greater than {maxvalue}, {maxvalue} is returned.

Determines the minimum value for comparing. Determines the maximum value for comparing.

Implementation

double limitWithin(double minValue, double maxValue) =>
    limitMin(minValue).limitMax(maxValue);