FWheelCalendarController constructor
FWheelCalendarController({})
Creates a FWheelCalendarController.
Implementation
FWheelCalendarController({super.selectable, super.start, super.today, super.initial, super.end}) {
day =
FCalendarDayPickerController(
start: start,
end: end,
initial: _currentMonth,
selectable: (date) => _daySelectable(start, date, end) && _selectable(date),
)..addListener(() {
if (!_wheel) {
_currentMonth = day.current;
}
notifyListeners();
});
}