TimePicker constructor
const
TimePicker({
- Key? key,
- required DateTime? selected,
- ValueChanged<
DateTime> ? onChanged, - VoidCallback? onCancel,
- String? header,
- TextStyle? headerStyle,
- EdgeInsetsGeometry contentPadding = kPickerContentPadding,
- double popupHeight = kPopupHeight,
- MouseCursor cursor = SystemMouseCursors.click,
- FocusNode? focusNode,
- bool autofocus = false,
- HourFormat hourFormat = HourFormat.h,
- String hourPlaceholder = 'hour',
- String minutePlaceholder = 'minute',
- String amText = 'AM',
- String pmText = 'PM',
- double minuteIncrement = 1,
Implementation
const TimePicker({
Key? key,
required this.selected,
this.onChanged,
this.onCancel,
this.header,
this.headerStyle,
this.contentPadding = kPickerContentPadding,
this.popupHeight = kPopupHeight,
this.cursor = SystemMouseCursors.click,
this.focusNode,
this.autofocus = false,
this.hourFormat = HourFormat.h,
this.hourPlaceholder = 'hour',
this.minutePlaceholder = 'minute',
this.amText = 'AM',
this.pmText = 'PM',
this.minuteIncrement = 1,
}) : super(key: key);