clampTo method

double clampTo(
  1. double min,
  2. double max
)

Returns the value clamped between min and max.

Implementation

double clampTo(double min, double max) => clamp(min, max).toDouble();