CloseWindowButton constructor
CloseWindowButton({
- Key? key,
- WindowButtonColors? colors,
- VoidCallback? onPressed,
- 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());