setVisibleOnAllWorkspaces method

Future<void> setVisibleOnAllWorkspaces(
  1. bool visible, {
  2. bool? visibleOnFullScreen,
})

Sets whether the window should be visible on all workspaces.

visibleOnFullScreen also allows joining full-screen spaces on macOS.

@platforms macos

Implementation

Future<void> setVisibleOnAllWorkspaces(
  bool visible, {
  bool? visibleOnFullScreen,
}) async {
  final window = _target;
  if (window == null) return;
  window.isVisibleOnAllWorkspaces = visible;
  window.setVisibleOnFullScreen(visibleOnFullScreen ?? false);
}