DateRangePickerDialog constructor
const
DateRangePickerDialog({
- Key? key,
- DateTimeRange<
DateTime> ? initialDateRange, - required DateTime firstDate,
- required DateTime lastDate,
- DateTime? currentDate,
- DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
- TextStyle rangeDateTextStyle = const TextStyle(),
- TextStyle titleTextStyle = const TextStyle(),
- String? cancelText,
- String? confirmText,
- String? saveText,
- String? errorInvalidRangeText,
- String? errorFormatText,
- String? errorInvalidText,
- String? fieldStartHintText,
- String? fieldEndHintText,
- String? fieldStartLabelText,
- String? fieldEndLabelText,
- String? restorationId,
- String? helpText,
A Material-style date range picker dialog.
Implementation
const DateRangePickerDialog({
Key? key,
this.initialDateRange,
required this.firstDate,
required this.lastDate,
this.currentDate,
this.initialEntryMode = DatePickerEntryMode.calendar,
this.rangeDateTextStyle = const TextStyle(),
this.titleTextStyle = const TextStyle(),
this.cancelText,
this.confirmText,
this.saveText,
this.errorInvalidRangeText,
this.errorFormatText,
this.errorInvalidText,
this.fieldStartHintText,
this.fieldEndHintText,
this.fieldStartLabelText,
this.fieldEndLabelText,
this.restorationId,
this.helpText,
}) : super(key: key);