RestoreWindowButton constructor

RestoreWindowButton({
  1. Key? key,
  2. WindowButtonColors? colors,
  3. VoidCallback? onPressed,
  4. bool? animate,
})

Implementation

RestoreWindowButton(
    {Key? key,
    WindowButtonColors? colors,
    VoidCallback? onPressed,
    bool? animate})
    : super(
          key: key,
          colors: colors,
          animate: animate ?? false,
          iconBuilder: (buttonContext) =>
              RestoreIcon(color: buttonContext.iconColor),
          onPressed: onPressed ?? () => appWindow.maximizeOrRestore());