DialogDateRange constructor
const
DialogDateRange({
- Key? key,
- String? title,
- required ValueChanged<
DateTimeRange> onConfirm, - DateStateBuilder? stateBuilder,
- String confirmText = "Done",
- String cancelText = "Cancel",
- DateTimeRange? initialRange,
Constructs a DialogDateRange instance with the specified configuration.
The onConfirm callback is mandatory and handles the selected range post-confirmation.
title sets an optional header for the dialog.
stateBuilder provides customization for date states, akin to DateMulti.
initialRange pre-selects dates if supplied.
confirmText and cancelText allow button text overrides, with sensible defaults.
Implementation
const DialogDateRange(
{super.key,
this.title,
required this.onConfirm,
this.stateBuilder,
this.confirmText = "Done",
this.cancelText = "Cancel",
this.initialRange});