CbConfig constructor
CbConfig({})
Implementation
CbConfig({
required this.startDate,
required this.endDate,
required this.selectedDate,
required this.selectedYear,
this.currentDay,
this.eventDates,
this.disabledDates,
this.highlightedDates,
this.weekStartsFrom = WeekStartsFrom.sunday,
}) : assert(startDate.isBefore(endDate),
'\n\nERROR ( Calendar Builder ):\n---------\nInside CbConfig()\nEndDate Should be greater than StartDate\n---------\n_'),
assert(
DateUtilsCB.checkDayisSelected(
dateSelected: selectedDate,
loopedDay: endDate,
) ||
selectedDate.isBefore(endDate),
'\n\nERROR ( Calendar Builder ):\n---------\nInside CbConfig()\nSelectedDate Should be in B/w StartDate and EndDate\n---------\n_'),
assert(
DateUtilsCB.checkDayisSelected(
dateSelected: selectedDate,
loopedDay: startDate,
) ||
selectedDate.isAfter(startDate),
'\n\nERROR ( Calendar Builder ):\n---------\nInside CbConfig()\nSelectedDate Should be in B/w StartDate and EndDate\n---------\n_'),
assert(selectedYear.year >= startDate.year &&
selectedYear.year <= endDate.year);