TimePicker constructor

const TimePicker({
  1. Key? key,
  2. required DateTime? selected,
  3. ValueChanged<DateTime>? onChanged,
  4. VoidCallback? onCancel,
  5. String? header,
  6. TextStyle? headerStyle,
  7. EdgeInsetsGeometry contentPadding = kPickerContentPadding,
  8. double popupHeight = kPopupHeight,
  9. MouseCursor cursor = SystemMouseCursors.click,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. HourFormat hourFormat = HourFormat.h,
  13. String hourPlaceholder = 'hour',
  14. String minutePlaceholder = 'minute',
  15. String amText = 'AM',
  16. String pmText = 'PM',
  17. 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);