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