normalizedClamped method
Same as normalized but clamps the result to [toMin, toMax].
Implementation
double normalizedClamped(
num fromMin,
num fromMax, [
num toMin = 0.0,
num toMax = 1.0,
]) => normalized(
fromMin,
fromMax,
toMin,
toMax,
).clamp(toMin.toDouble(), toMax.toDouble());