removeFullScreenPresentationOptions static method

Future<void> removeFullScreenPresentationOptions()

Removes the window's full-screen presentation options.

Removing the window's full-screen presentation options returns the window's presentation to its default state.

Implementation

static Future<void> removeFullScreenPresentationOptions() async {
  await _completer.future;
  final hasSucceeded = await _windowManipulatorMethodChannel
      .invokeMethod('removeFullScreenPresentationOptions') as bool;

  assert(
      hasSucceeded,
      'removeFullScreenPresentationOptions failed. Please make sure that '
      'the `enableWindowDelegate` parameter is set to true in your '
      'WindowManipulator.initialize call.');
}