Time Picker State
constructor(initialHour: Int, initialMinute: Int, initialPeriod: TimePeriod, timeFormat: TimeFormat)
Parameters
initial Hour
The initial hour to be selected.
initial Minute
The initial minute to be selected.
initial Period
The initial period (AM/PM) to be selected.
time Format
The time format (12-hour or 24-hour).
Creates a TimePickerState from a LocalTime.
When timeFormat is TimeFormat.HOUR_12, the hour is converted to the format-hour range and the AM/PM period is derived from initialTime.