window property

Window window

Gets window controlled by this WindowController.

Throws StateError if modified inside a browser.

Implementation

Window get window => _window;
void window=(Window window)

Implementation

set window(Window window) {
  if (isTopLevelWindowInsideBrowser) {
    throw StateError('Failed to mutate the main window inside a browser');
  }
  _window = window;
}