setSelectedDates method

void setSelectedDates({
  1. required List<DateTime> selectedDates,
  2. List<DateTime>? disabledList,
  3. List<Map<String, DateTime?>>? disabledRangeList,
})

Implementation

void setSelectedDates(
    {required List<DateTime> selectedDates,
    List<DateTime>? disabledList,
    List<Map<String, DateTime?>>? disabledRangeList}) {
  for (var selectedDate in selectedDates) {
    setCurrentMonth(selectedDate, SelectType.selected);
  }
  setDisabledDates(
      disabledList: disabledList, disabledRangeList: disabledRangeList);
}