DateRangePickerDialog constructor Null safety

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. String? restorationId}
)

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.helpText,
  this.cancelText,
  this.confirmText,
  this.saveText,
  this.errorInvalidRangeText,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldStartHintText,
  this.fieldEndHintText,
  this.fieldStartLabelText,
  this.fieldEndLabelText,
  this.restorationId,
}) : super(key: key);