clampValue method

void clampValue(
  1. double min,
  2. double max
)

Clamps the value between min and max.

Implementation

void clampValue(double min, double max) {
  value = value.clamp(min, max);
}