DateRangePickerDialog constructor

const DateRangePickerDialog({
  1. Key? key,
  2. DateTimeRange? initialDateRange,
  3. required DateTime firstDate,
  4. required DateTime lastDate,
  5. DateTime? currentDate,
  6. DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  7. String? helpText,
  8. String? cancelText,
  9. String? confirmText,
  10. String? saveText,
  11. String? errorInvalidRangeText,
  12. String? errorFormatText,
  13. String? errorInvalidText,
  14. String? fieldStartHintText,
  15. String? fieldEndHintText,
  16. String? fieldStartLabelText,
  17. String? fieldEndLabelText,
  18. TextInputType keyboardType = TextInputType.datetime,
  19. String? restorationId,
  20. Icon? switchToInputEntryModeIcon,
  21. Icon? switchToCalendarEntryModeIcon,
  22. SelectableDayForRangePredicate? selectableDayPredicate,
})

A Material-style date range picker dialog.

Implementation

const DateRangePickerDialog({
  super.key,
  this.initialDateRange,
  required this.firstDate,
  required this.lastDate,
  this.currentDate,
  this.initialEntryMode = DatePickerEntryMode.calendar,
  this.helpText,
  this.cancelText,
  this.confirmText,
  this.saveText,
  this.errorInvalidRangeText,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldStartHintText,
  this.fieldEndHintText,
  this.fieldStartLabelText,
  this.fieldEndLabelText,
  this.keyboardType = TextInputType.datetime,
  this.restorationId,
  this.switchToInputEntryModeIcon,
  this.switchToCalendarEntryModeIcon,
  this.selectableDayPredicate,
});