addEmptyMaskImage static method

Future<void> addEmptyMaskImage()

Adds an empty mask image to the window's view.

This will effectively disable the NSVisualEffectView's effect.

Warning: It is recommended to disable the window's shadow using WindowManipulator.disableShadow() when using this method. Keeping the shadow enabled when using an empty mask image can cause visual artifacts and performance issues.

Implementation

static Future<void> addEmptyMaskImage() async {
  await _completer.future;
  await _windowManipulatorMethodChannel.invokeMethod('addEmptyMaskImage');
}