isWindowFullscreened static method

Future<bool> isWindowFullscreened()

Returns if the window is fullscreened.

This method is only available on macOS.

Implementation

static Future<bool> isWindowFullscreened() async {
  if (Platform.isMacOS) {
    return WindowManipulator.isWindowFullscreened();
  }

  if (!Platform.isMacOS) {
    throw UnsupportedError(
      'isWindowFullscreened() is only available on macOS.',
    );
  }

  return false;
}