monthSelectorState property
CalendarState
get
monthSelectorState
Implementation
CalendarState get monthSelectorState => _monthSelectorState;
set
monthSelectorState
(CalendarState state)
Implementation
set monthSelectorState(CalendarState state) {
_monthSelectorState = state;
if (state.has(state.currentSelection)) {
// A month was selected - switch back to the calendar picker and scroll
// the month into view.
showMonthSelector = false;
_monthSelectorState =
CalendarState.empty(resolution: CalendarResolution.months);
final selectedMonth = state.selection(state.currentSelection);
_domService.scheduleWrite(() {
calendarPicker?.scrollToDate(selectedMonth.start!);
});
}
}