CLCalendar.range constructor
const
CLCalendar.range({
- Key? key,
- DateTime? rangeStart,
- DateTime? rangeEnd,
- DateTime? initialMonth,
- void onRangeChanged()?,
- DateTime? firstDate,
- DateTime? lastDate,
- bool selectableDayPredicate()?,
- int? min,
- int? max,
- bool showWeekNumbers = false,
- bool showOutsideDays = true,
- bool fixedWeeks = false,
- bool hideWeekdayNames = false,
- int numberOfMonths = 1,
- CLCalendarCaptionLayout captionLayout = CLCalendarCaptionLayout.label,
- DateTime? fromMonth,
- 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;