Duration Picker State
Saveable logical state for DurationPicker.
The state owns one scalar selectedDuration. selectedHours and selectedMinutes are derived views of that value, so programmatic multi-field changes cannot expose an intermediate state.
Parameters
initial Duration
Initial finite, non-negative, whole-minute duration.
Throws
if initialDuration is outside the supported duration domain or its elapsed whole-hour part does not fit in Int.
Properties
Link copied to clipboard
The currently selected logical duration.
Link copied to clipboard
The elapsed whole-hour part of selectedDuration.
Link copied to clipboard
The minute-within-hour part of selectedDuration, in 0..59.
Functions
Link copied to clipboard
Programmatically selects duration without dispatching DurationPicker user callbacks.