DateTimePicker constructor
const
DateTimePicker({
- Key? key,
- required DateTimePickerType type,
- required ValueChanged<
String> onChanged, - DateTime? firstDate,
- DateTime? lastDate,
- DateTime? initialDate,
- TimeOfDay? initialTime,
- String? dateMask,
- Widget? icon,
- String? dateLabelText,
- String? timeLabelText,
- String? dateHintText,
- String? timeHintText,
- String? calendarTitle,
- String? cancelText,
- String? confirmText,
- String? fieldLabelText,
- String? fieldHintText,
- String? errorFormatText,
- String? errorInvalidText,
- DatePickerEntryMode? initialEntryMode,
- DatePickerMode? initialDatePickerMode,
- SelectableDayPredicate? selectableDayPredicate,
- TextDirection? textDirection,
- Locale? locale,
- RouteSettings? routeSettings,
- bool use24HourFormat = true,
- double? timeFieldWidth,
- 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);