AdwHeaderBar constructor

AdwHeaderBar({
  1. Key? key,
  2. Widget? title,
  3. List<Widget> start = const [],
  4. List<Widget> end = const [],
  5. HeaderBarStyle style = const HeaderBarStyle(),
  6. required AdwActions actions,
  7. AdwControls? controls,
})

Implementation

AdwHeaderBar({
  Key? key,
  this.title,
  this.start = const [],
  this.end = const [],
  this.style = const HeaderBarStyle(),
  required AdwActions actions,
  AdwControls? controls,
})  : closeBtn = controls != null
          ? controls.closeBtn?.call(actions.onClose)
          : AdwWindowButton(
              buttonType: WindowButtonType.close,
              onPressed: actions.onClose,
            ),
      maximizeBtn = controls != null
          ? controls.maximizeBtn?.call(actions.onMaximize)
          : AdwWindowButton(
              buttonType: WindowButtonType.maximize,
              onPressed: actions.onMaximize,
            ),
      minimizeBtn = controls != null
          ? controls.minimizeBtn?.call(actions.onMinimize)
          : AdwWindowButton(
              buttonType: WindowButtonType.minimize,
              onPressed: actions.onMinimize,
            ),
      onHeaderDrag = actions.onHeaderDrag,
      onDoubleTap = actions.onDoubleTap,
      onRightClick = actions.onRightClick,
      super(key: key);