remember Date Range Picker State
Creates and remembers a DateRangePickerState.
Initial values are read when the state is first created.
Return
A DateRangePickerState initialized with the requested date range.
Parameters
The initial range start date.
The initial range end date.
Creates and remembers a DateRangePickerState from an initial DateRange.
Initial values are read when the state is first created.
Return
A DateRangePickerState initialized with initialDateRange.
Parameters
The initial range to be selected.
Creates and remembers a DateRangePickerState with explicit start and end date parts.
Initial values are read when the state is first created. If a day is greater than the maximum day for its year/month, it is clamped to that maximum.
Return
A DateRangePickerState initialized with the requested date range.
Parameters
The initial range start year. Must be in 1000..9999.
The initial range start month. Must be in 1..12.
The initial range start day. Must be at least 1.
The initial range end year. Must be in 1000..9999.
The initial range end month. Must be in 1..12.
The initial range end day. Must be at least 1.
Creates and remembers a DateRangePickerState whose initial values are coerced by items.
Initial values and items are read when the state is first created. This overload accepts unordered initialStartDate and initialEndDate values. Both dates are coerced by items and then ordered before the state is created.
Return
A DateRangePickerState initialized to the closest selectable date range.
Parameters
Selectable values used to coerce initialStartDate and initialEndDate.
The requested range start date.
The requested range end date.
Creates and remembers a DateRangePickerState from an initial DateRange coerced by items.
Initial values and items are read when the state is first created.
Return
A DateRangePickerState initialized to the closest selectable date range.
Parameters
Selectable values used to coerce initialDateRange.
The requested initial range.
Creates and remembers a DateRangePickerState with explicit start and end date parts coerced by items.
Initial values and items are read when the state is first created. If a day is greater than the maximum day for its year/month, it is clamped before items coercion. This overload accepts unordered resulting dates and orders them before the state is created.
Return
A DateRangePickerState initialized to the closest selectable date range.
Parameters
Selectable values used to coerce the requested start and end dates.
The requested range start year.
The requested range start month.
The requested range start day.
The requested range end year.
The requested range end month.
The requested range end day.