TimeModelBinding constructor

TimeModelBinding({
  1. Key? key,
  2. required Time initialTime,
  3. required Widget child,
  4. required void onChange(
    1. Time
    ),
  5. void onChangeDateTime(
    1. DateTime
    )?,
  6. void onCancel()?,
  7. bool is24HrFormat = false,
  8. bool? displayHeader,
  9. Color? accentColor,
  10. bool ltrMode = true,
  11. Color? unselectedColor,
  12. String cancelText = 'cancel',
  13. String okText = 'ok',
  14. bool isOnValueChangeMode = false,
  15. Image? sunAsset,
  16. Image? moonAsset,
  17. bool blurredBackground = false,
  18. double? borderRadius,
  19. double? elevation,
  20. EdgeInsets? dialogInsetPadding,
  21. TimePickerInterval? minuteInterval,
  22. TimePickerInterval? secondInterval,
  23. bool? disableMinute,
  24. bool? disableHour,
  25. double? maxHour,
  26. double? maxMinute,
  27. double? maxSecond,
  28. double? minHour,
  29. double? minMinute,
  30. double? minSecond,
  31. String? hourLabel,
  32. String? minuteLabel,
  33. String? secondLabel,
  34. bool isInlineWidget = false,
  35. bool focusMinutePicker = false,
  36. TextStyle okStyle = const TextStyle(fontWeight: FontWeight.bold),
  37. TextStyle cancelStyle = const TextStyle(fontWeight: FontWeight.bold),
  38. ButtonStyle? buttonStyle,
  39. ButtonStyle? cancelButtonStyle,
  40. double? buttonsSpacing,
  41. double? wheelHeight,
  42. bool hideButtons = false,
  43. bool disableAutoFocusToNextInput = false,
  44. double width = 0,
  45. double height = 0,
  46. bool showSecondSelector = false,
  47. bool showCancelButton = true,
  48. TimeOfDay? sunrise,
  49. TimeOfDay? sunset,
  50. int? duskSpanInMinutes,
})

Constructor for the Widget

Implementation

TimeModelBinding({
  Key? key,
  required this.initialTime,
  required this.child,
  required this.onChange,
  this.onChangeDateTime,
  this.onCancel,
  this.is24HrFormat = false,
  this.displayHeader,
  this.accentColor,
  this.ltrMode = true,
  this.unselectedColor,
  this.cancelText = 'cancel',
  this.okText = 'ok',
  this.isOnValueChangeMode = false,
  this.sunAsset,
  this.moonAsset,
  this.blurredBackground = false,
  this.borderRadius,
  this.elevation,
  this.dialogInsetPadding,
  this.minuteInterval,
  this.secondInterval,
  this.disableMinute,
  this.disableHour,
  this.maxHour,
  this.maxMinute,
  this.maxSecond,
  this.minHour,
  this.minMinute,
  this.minSecond,
  this.hourLabel,
  this.minuteLabel,
  this.secondLabel,
  this.isInlineWidget = false,
  this.focusMinutePicker = false,
  this.okStyle = const TextStyle(fontWeight: FontWeight.bold),
  this.cancelStyle = const TextStyle(fontWeight: FontWeight.bold),
  this.buttonStyle,
  this.cancelButtonStyle,
  this.buttonsSpacing,
  this.wheelHeight,
  this.hideButtons = false,
  this.disableAutoFocusToNextInput = false,
  this.width = 0,
  this.height = 0,
  this.showSecondSelector = false,
  this.showCancelButton = true,
  this.sunrise,
  this.sunset,
  this.duskSpanInMinutes,
}) : super(key: key);