progressAndClamp method

double progressAndClamp(
  1. num min,
  2. double max,
  3. double clamp
)

Returns the progress of the current value between min and max. The minimum value will always be 0 and the maximum value will always be clamp.

Implementation

double progressAndClamp(num min, double max, double clamp) {
  return progress(min, max).clamp(0.0, clamp);
}