CalendarDatePicker2WithActionButtons constructor
CalendarDatePicker2WithActionButtons({
- required List<
DateTime?> value, - required CalendarDatePicker2WithActionButtonsConfig config,
- ValueChanged<
List< ? onValueChanged,DateTime?> > - ValueChanged<
DateTime> ? onDisplayedMonthChanged, - Function? onCancelTapped,
- Function? onOkTapped,
- Key? key,
Implementation
CalendarDatePicker2WithActionButtons({
required this.value,
required this.config,
this.onValueChanged,
this.onDisplayedMonthChanged,
this.onCancelTapped,
this.onOkTapped,
Key? key,
}) : super(key: key) {
if (config.calendarViewMode == CalendarDatePicker2Mode.scroll) {
assert(
config.scrollViewConstraints?.maxHeight != null,
'scrollViewConstraint with maxHeight must be provided when used withCalendarDatePicker2WithActionButtons under scroll mode',
);
}
}