TimePicker constructor

const TimePicker({
  1. Key? id,
  2. required TimePickerState state,
  3. bool use24Hour = true,
  4. bool showSeconds = false,
  5. int hourStep = 1,
  6. int minuteStep = 1,
  7. int secondStep = 1,
  8. void onChanged(
    1. int h,
    2. int m,
    3. int s
    )?,
  9. void onSubmit(
    1. int h,
    2. int m,
    3. int s
    )?,
  10. Style? fieldStyle,
  11. Style? activeFieldStyle,
  12. Style? separatorStyle,
})

Implementation

const TimePicker({
  Key? id,
  required this.state,
  this.use24Hour = true,
  this.showSeconds = false,
  this.hourStep = 1,
  this.minuteStep = 1,
  this.secondStep = 1,
  this.onChanged,
  this.onSubmit,
  this.fieldStyle,
  this.activeFieldStyle,
  this.separatorStyle,
})  : _id = id,
      assert(hourStep > 0 && minuteStep > 0 && secondStep > 0);