TimePicker constructor

const TimePicker({
  1. Key? key,
  2. required DateTime? selected,
  3. ValueChanged<DateTime>? onChanged,
  4. VoidCallback? onCancel,
  5. HourFormat hourFormat = HourFormat.h,
  6. String? header,
  7. TextStyle? headerStyle,
  8. EdgeInsetsGeometry contentPadding = kPickerContentPadding,
  9. double popupHeight = kPickerPopupHeight,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. int minuteIncrement = 1,
  13. 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,
});