TimeModelBinding constructor
TimeModelBinding({
- Key? key,
- required Time initialTime,
- required Widget child,
- required void onChange(),
- void onChangeDateTime()?,
- void onCancel()?,
- bool is24HrFormat = false,
- bool? displayHeader,
- Color? accentColor,
- bool ltrMode = true,
- Color? unselectedColor,
- String cancelText = "cancel",
- String okText = "ok",
- bool isOnValueChangeMode = false,
- Image? sunAsset,
- Image? moonAsset,
- bool blurredBackground = false,
- double? borderRadius,
- double? elevation,
- EdgeInsets? dialogInsetPadding,
- MinuteInterval? minuteInterval,
- bool? disableMinute,
- bool? disableHour,
- double? maxHour,
- double? maxMinute,
- double? minHour,
- double? minMinute,
- String? hourLabel,
- String? minuteLabel,
- bool isInlineWidget = false,
- bool focusMinutePicker = false,
- TextStyle okStyle = const TextStyle(fontWeight: FontWeight.bold),
- TextStyle cancelStyle = const TextStyle(fontWeight: FontWeight.bold),
- ButtonStyle? buttonStyle,
- ButtonStyle? cancelButtonStyle,
- 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);