progressAndClamp method
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);
}