CalendarDatePicker2WithActionButtons constructor

CalendarDatePicker2WithActionButtons({
  1. required List<DateTime?> value,
  2. required CalendarDatePicker2WithActionButtonsConfig config,
  3. ValueChanged<List<DateTime?>>? onValueChanged,
  4. ValueChanged<DateTime>? onDisplayedMonthChanged,
  5. Function? onCancelTapped,
  6. Function? onOkTapped,
  7. 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',
    );
  }
}