TimePicker constructor
const
TimePicker({
- Key? key,
- required DateTime? selected,
- ValueChanged<
DateTime> ? onChanged, - VoidCallback? onCancel,
- HourFormat hourFormat = HourFormat.h,
- String? header,
- TextStyle? headerStyle,
- EdgeInsetsGeometry contentPadding = kPickerContentPadding,
- double popupHeight = kPickerPopupHeight,
- FocusNode? focusNode,
- bool autofocus = false,
- int minuteIncrement = 1,
- Locale? locale,
Creates a time picker.
Implementation
const TimePicker({
super.key,
required this.selected,
this.onChanged,
this.onCancel,
this.hourFormat = HourFormat.h,
this.header,
this.headerStyle,
this.contentPadding = kPickerContentPadding,
this.popupHeight = kPickerPopupHeight,
this.focusNode,
this.autofocus = false,
this.minuteIncrement = 1,
this.locale,
});