DatePickerWidget.multi constructor

DatePickerWidget.multi({
  1. required dynamic onSelectionChanged(
    1. List<DateTime?> selected
    ),
  2. double? height,
  3. double? width,
  4. DateTime? firstDate,
  5. DateTime? lastDate,
  6. DateTime? startDate,
  7. PickerDateRange? initialValue,
})

Implementation

factory DatePickerWidget.multi({
  required Function(List<DateTime?> selected) onSelectionChanged,
  double? height,
  double? width,
  DateTime? firstDate,
  DateTime? lastDate,
  DateTime? startDate,
  PickerDateRange? initialValue,
}) =>
    DatePickerWidget(
      height: height,
      width: width,
      firstDate: firstDate,
      lastDate: lastDate,
      initialValue: initialValue,
      calendarType: CalendarDatePicker2Type.multi,
      onSelectionChanged: (selected) {
        onSelectionChanged(selected as List<DateTime?>);
      },
    );