CloseWindowButton constructor

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

Implementation

CloseWindowButton(
    {Key? key,
    WindowButtonColors? colors,
    VoidCallback? onPressed,
    bool? animate})
    : super(
          key: key,
          colors: colors ?? _defaultCloseButtonColors,
          animate: animate ?? false,
          iconBuilder: (buttonContext) =>
              CloseIcon(color: buttonContext.iconColor),
          onPressed: onPressed ?? () => appWindow.close());