clip method

  1. @override
N clip(
  1. N value
)
override

Clips value in this scale.

Implementation

@override
N clip(N value) {
  if (value < minimum) return minimum;
  if (value > maximum) return maximum;
  return value;
}