DialogDateMulti constructor

const DialogDateMulti({
  1. Key? key,
  2. String? title,
  3. required ValueChanged<List<DateTime>> onConfirm,
  4. DateStateBuilder? stateBuilder,
  5. String confirmText = "Done",
  6. String cancelText = "Cancel",
  7. List<DateTime>? initialDates,
})

Constructs a DialogDateMulti widget.

Parameters:

  • key: Standard Flutter widget key.
  • title: Optional dialog title string.
  • onConfirm: Required callback for selected dates (defaults to null handling in state).
  • stateBuilder: Optional builder for calendar state (defaults to standard).
  • confirmText: Confirm button text (defaults to "Done").
  • cancelText: Cancel button text (defaults to "Cancel").
  • initialDates: Optional initial selected dates (defaults to empty selection).

Initializes the dialog with provided parameters, setting up the multi-date picker.

Implementation

const DialogDateMulti(
    {super.key,
    this.title,
    required this.onConfirm,
    this.stateBuilder,
    this.confirmText = "Done",
    this.cancelText = "Cancel",
    this.initialDates});