TimeModelBinding constructor

TimeModelBinding({
  1. Key? key,
  2. required Time initialTime,
  3. required Widget child,
  4. required void onChange(
    1. TimeOfDay
    ),
  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. MinuteInterval? minuteInterval,
  22. bool? disableMinute,
  23. bool? disableHour,
  24. double? maxHour,
  25. double? maxMinute,
  26. double? minHour,
  27. double? minMinute,
  28. String? hourLabel,
  29. String? minuteLabel,
  30. bool isInlineWidget = false,
  31. bool focusMinutePicker = false,
  32. TextStyle okStyle = const TextStyle(fontWeight: FontWeight.bold),
  33. TextStyle cancelStyle = const TextStyle(fontWeight: FontWeight.bold),
  34. ButtonStyle? buttonStyle,
  35. ButtonStyle? cancelButtonStyle,
  36. double? buttonsSpacing,
})

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.disableMinute,
  this.disableHour,
  this.maxHour,
  this.maxMinute,
  this.minHour,
  this.minMinute,
  this.hourLabel,
  this.minuteLabel,
  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,
}) : super(key: key);