removeWindow method

void removeWindow(
  1. Window window
)

Removes a window from the manager and its focus node.

Implementation

void removeWindow(Window window) {
  windows.remove(window);
  window.focusNode.parent?.children.remove(window.focusNode);
}