CLCalendar.multiple constructor

const CLCalendar.multiple({
  1. Key? key,
  2. List<DateTime> selectedDates = const [],
  3. DateTime? initialMonth,
  4. ValueChanged<List<DateTime>>? onMultipleChanged,
  5. DateTime? firstDate,
  6. DateTime? lastDate,
  7. bool selectableDayPredicate(
    1. DateTime
    )?,
  8. int? min,
  9. int? max,
  10. bool showWeekNumbers = false,
  11. bool showOutsideDays = true,
  12. bool fixedWeeks = false,
  13. bool hideNavigation = false,
  14. bool hideWeekdayNames = false,
  15. int numberOfMonths = 1,
  16. CLCalendarCaptionLayout captionLayout = CLCalendarCaptionLayout.label,
  17. DateTime? fromMonth,
  18. DateTime? toMonth,
})

Selezione multipla (più giorni). min/max = conteggio giorni.

Implementation

const CLCalendar.multiple({
  super.key,
  this.selectedDates = const [],
  this.initialMonth,
  this.onMultipleChanged,
  this.firstDate,
  this.lastDate,
  this.selectableDayPredicate,
  this.min,
  this.max,
  this.showWeekNumbers = false,
  this.showOutsideDays = true,
  this.fixedWeeks = false,
  this.hideNavigation = false,
  this.hideWeekdayNames = false,
  this.numberOfMonths = 1,
  this.captionLayout = CLCalendarCaptionLayout.label,
  this.fromMonth,
  this.toMonth,
})  : variant = CLCalendarVariant.multiple,
      selected = null,
      onChanged = null,
      rangeStart = null,
      rangeEnd = null,
      onRangeChanged = null;