DateTimeRangePicker constructor Null safety

DateTimeRangePicker(
  1. {Key? key,
  2. dynamic startText = "Start",
  3. dynamic endText = "End",
  4. dynamic doneText = "Done",
  5. dynamic cancelText = "Cancel",
  6. DateTimeRangePickerMode mode = DateTimeRangePickerMode.dateAndTime,
  7. int interval = 15,
  8. bool use24hFormat = false,
  9. DateTime? minimumTime,
  10. DateTime? maximumTime,
  11. DateTime? initialStartTime,
  12. DateTime? initialEndTime,
  13. VoidCallback? onCancel,
  14. PickerConfirmCallback? onConfirm}
)

Implementation

DateTimeRangePicker({
  Key? key,
  this.startText = "Start",
  this.endText = "End",
  this.doneText = "Done",
  this.cancelText = "Cancel",
  this.mode = DateTimeRangePickerMode.dateAndTime,
  this.interval = 15,
  this.use24hFormat = false,
  this.minimumTime,
  this.maximumTime,
  this.initialStartTime,
  this.initialEndTime,
  this.onCancel,
  this.onConfirm,
});