Duration Picker Constraints
data class DurationPickerConstraints(val minDuration: Duration? = null, val maxDuration: Duration? = null)
Inclusive scalar bounds applied by DurationPickerItems.
Bounds use whole-minute precision because io.github.kezlab.compose.pickers.duration.DurationPicker exposes hour and minute columns. Each provided bound must be finite and non-negative.
Parameters
min Duration
The smallest selectable duration, inclusive. Pass null to omit the lower bound.
max Duration
The largest selectable duration, inclusive. Pass null to omit the upper bound.
Throws
if a bound is not finite, non-negative, whole-minute, or the lower bound is greater than the upper bound.