setBlurViewState static method

Future<void> setBlurViewState(
  1. MacOSBlurViewState state
)

Sets the blur view state.

This method is only available on macOS.

Implementation

static Future<void> setBlurViewState(MacOSBlurViewState state) async {
  final visualEffectViewState = BlurViewStateToVisualEffectViewStateConverter
      .convertBlurViewStateToVisualEffectViewState(state);
  WindowManipulator.setNSVisualEffectViewState(visualEffectViewState);
}