setCalendar method

void setCalendar()

Implementation

void setCalendar() {
  if (widget.isRange) {
    calendarInfo = CalendarInfo(
        firstWeekDay: widget.firstWeekDay,
        year: yearValue['value'], month: monthValue['value'], thisVsync: this)
      ..setSelectedBtwDates(
        datesRange: datesRange,
        disabledList: widget.disabledList,
        disabledRangeList: widget.disabledRangeList,
      );
  } else {
    calendarInfo = CalendarInfo(
      firstWeekDay: widget.firstWeekDay,
        year: yearValue['value'], month: monthValue['value'], thisVsync: this)
      ..setSelectedDates(
        selectedDates: selectedItems!,
        disabledList: widget.disabledList,
        disabledRangeList: widget.disabledRangeList,
      );
  }
}