Clamps the value between min and max.
min
max
void clampValue(double min, double max) { value = value.clamp(min, max); }