onSelectDate method
Implementation
onSelectDate(DateTime dateTime) {
if (selectedDates.length == 2 || isSingle) {
selectedDates.clear();
}
selectedDates.add(dateTime);
selectedDates.sort();
updateYears();
notify();
}
onSelectDate(DateTime dateTime) {
if (selectedDates.length == 2 || isSingle) {
selectedDates.clear();
}
selectedDates.add(dateTime);
selectedDates.sort();
updateYears();
notify();
}