DialogDateMulti constructor
const
DialogDateMulti({
- Key? key,
- String? title,
- required ValueChanged<
List< onConfirm,DateTime> > - DateStateBuilder? stateBuilder,
- String confirmText = "Done",
- String cancelText = "Cancel",
- 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});