Returns the value clamped between min and max.
min
max
double clampTo(double min, double max) => clamp(min, max).toDouble();