MultiDatePicker constructor
MultiDatePicker({
- Key? key,
- required DateTime calendarStartDate,
- required DateTime calendarEndDate,
- DateTime? initialDate,
- DateTime? startDate,
- DateTime? endDate,
- dynamic onDateSelected()?,
- List<
DateTime> ? selectedDates, - List<
DateTime> ? datesToExclude, - CalendarStyleConfiguration? calendarStyleConfiguration,
- ScrollController? scrollController,
- bool enableListener = true,
- bool enableMultiSelect = false,
Implementation
MultiDatePicker({
super.key,
required this.calendarStartDate,
required this.calendarEndDate,
this.initialDate,
this.startDate,
this.endDate,
this.onDateSelected,
this.selectedDates,
this.datesToExclude,
this.calendarStyleConfiguration,
this.scrollController,
this.enableListener = true,
this.enableMultiSelect = false,
}) : assert(calendarEndDate.difference(calendarStartDate).inDays > 0),
assert(startDate == null || startDate.isBefore(endDate!)),
assert(endDate == null || endDate.isAfter(startDate!));