DateTimePicker constructor

const DateTimePicker({
  1. Key? key,
  2. required DateTimePickerType type,
  3. required ValueChanged<String> onChanged,
  4. DateTime? firstDate,
  5. DateTime? lastDate,
  6. DateTime? initialDate,
  7. TimeOfDay? initialTime,
  8. String? dateMask,
  9. Widget? icon,
  10. String? dateLabelText,
  11. String? timeLabelText,
  12. String? dateHintText,
  13. String? timeHintText,
  14. String? calendarTitle,
  15. String? cancelText,
  16. String? confirmText,
  17. String? fieldLabelText,
  18. String? fieldHintText,
  19. String? errorFormatText,
  20. String? errorInvalidText,
  21. DatePickerEntryMode? initialEntryMode,
  22. DatePickerMode? initialDatePickerMode,
  23. SelectableDayPredicate? selectableDayPredicate,
  24. TextDirection? textDirection,
  25. Locale? locale,
  26. bool useRootNavigator = false,
  27. RouteSettings? routeSettings,
  28. bool use24HourFormat = true,
  29. double? timeFieldWidth,
  30. bool timePickerEntryModeInput = false,
})

Implementation

const DateTimePicker({
  Key? key,
  required this.type,
  required this.onChanged,
  this.firstDate,
  this.lastDate,
  this.initialDate,
  this.initialTime,
  this.dateMask,
  this.icon,
  this.dateLabelText,
  this.timeLabelText,
  this.dateHintText,
  this.timeHintText,
  this.calendarTitle,
  this.cancelText,
  this.confirmText,
  this.fieldLabelText,
  this.fieldHintText,
  this.errorFormatText,
  this.errorInvalidText,
  this.initialEntryMode,
  this.initialDatePickerMode,
  this.selectableDayPredicate,
  this.textDirection,
  this.locale,
  this.useRootNavigator = false,
  this.routeSettings,
  this.use24HourFormat = true,
  this.timeFieldWidth,
  this.timePickerEntryModeInput = false,
}) : super(key: key);