removeFromStyleMask static method

Future<void> removeFromStyleMask(
  1. NSWindowStyleMask styleMask
)

Disables a flag that describes the window's current style, such as if it's resizable or in full-screen mode.

Usage example:

// Make window non-titled and borderless.
WindowManipulator.removeFromStyleMask(NSWindowStyleMask.titled);
WindowManipulator.insertIntoStyleMask(NSWindowStyleMask.borderless);

Implementation

static Future<void> removeFromStyleMask(NSWindowStyleMask styleMask) async {
  await _completer.future;
  await _windowManipulatorMethodChannel.invokeMethod('removeFromStyleMask', {
    'styleMask': styleMask.name,
  });
}