# setEffect method

void setEffect(

1. WindowEffect effect,
2. BuildContext context

)

## Implementation

    void setEffect(WindowEffect effect, BuildContext context) {
      Window.setEffect(
        effect: effect,
        color: [
          WindowEffect.solid,
          WindowEffect.acrylic,
        ].contains(effect)
            ? FluentTheme.of(context).micaBackgroundColor.withOpacity(0.05)
            : Colors.transparent,
        dark: FluentTheme.of(context).brightness.isDark,
      );
    }