InternalTimePicker constructor

const InternalTimePicker({
  1. required void onConfirm(
    1. Duration
    ),
  2. Key? key,
  3. Widget? title,
  4. String? titleText,
  5. Duration value = Duration.zero,
  6. int minuteInterval = 1,
  7. int secondInterval = 1,
  8. AlignmentGeometry alignment = Alignment.center,
  9. CupertinoTimerPickerMode mode = CupertinoTimerPickerMode.hms,
  10. Color? backgroundColor,
})

InternalTimePicker 内部时间选择器组件

Implementation

const InternalTimePicker({
  required this.onConfirm,
  super.key,
  // -------------------------------------------------------------------------------------------- > Custom
  this.title,
  this.titleText,
  // -------------------------------------------------------------------------------------------- > DatePicker
  this.value = Duration.zero,
  this.minuteInterval = 1,
  this.secondInterval = 1,
  this.alignment = Alignment.center,
  this.mode = CupertinoTimerPickerMode.hms,
  this.backgroundColor,
});