CLCalendar.range constructor

const CLCalendar.range({
  1. Key? key,
  2. DateTime? rangeStart,
  3. DateTime? rangeEnd,
  4. DateTime? initialMonth,
  5. void onRangeChanged(
    1. DateTime? start,
    2. DateTime? end
    )?,
  6. DateTime? firstDate,
  7. DateTime? lastDate,
  8. bool selectableDayPredicate(
    1. DateTime
    )?,
  9. int? min,
  10. int? max,
  11. bool showWeekNumbers = false,
  12. bool showOutsideDays = true,
  13. bool fixedWeeks = false,
  14. bool hideNavigation = false,
  15. bool hideWeekdayNames = false,
  16. int numberOfMonths = 1,
  17. CLCalendarCaptionLayout captionLayout = CLCalendarCaptionLayout.label,
  18. DateTime? fromMonth,
  19. DateTime? toMonth,
})

Selezione di un intervallo (start–end). min/max = lunghezza in giorni.

Implementation

const CLCalendar.range({
  super.key,
  this.rangeStart,
  this.rangeEnd,
  this.initialMonth,
  this.onRangeChanged,
  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.range,
      selected = null,
      onChanged = null,
      selectedDates = const [],
      onMultipleChanged = null;