Clamp extension

on

Methods

clamp(Duration lowerLimit, Duration upperLimit) Duration

Available on Duration, provided by the Clamp extension

Returns this Duration clamped to be in the range lowerLimit-upperLimit.