TWCalendarController constructor

TWCalendarController({
  1. required DateTime firstDate,
  2. required DateTime lastDate,
  3. DateTime? selectedStartDate,
  4. DateTime? selectedEndDate,
  5. List<DateTime>? notSerialSelectedDates,
  6. void onSelectFinish(
    1. DateTime? selectStartTime,
    2. DateTime? selectEndTime,
    3. List<DateTime>? notSerialSelectedDates,
    4. int selectedDays,
    )?,
  7. void onSelectDayRang(
    1. DateTime selectedDate,
    2. int selectedDays
    )?,
  8. String onSelectDayTitle(
    1. DateTime? selectStartTime,
    2. DateTime? selectEndTime,
    3. int selectedDays
    )?,
})

Implementation

TWCalendarController({
  required this.firstDate,
  required this.lastDate,
  this.selectedStartDate,
  this.selectedEndDate,
  this.notSerialSelectedDates,
  this.onSelectFinish,
  this.onSelectDayRang,
  this.onSelectDayTitle,
}) : assert(!firstDate.isAfter(lastDate),
          'lastDate must be on or after firstDate');