withUpperLimit method

T withUpperLimit(
  1. T max
)

returns this if it is not greater than max, otherwise max

Implementation

T withUpperLimit(T max) => _withUpperLimit(max);