Window class

The interface represents a window containing a DOM document; the document property points to the DOM document loaded in that window. A window for a given document can be obtained using the document.defaultView property. A global variable, window, representing the window in which the script is running, is exposed to JavaScript code. The interface is home to a variety of functions, namespaces, objects, and constructors which are not necessarily directly associated with the concept of a user interface window. However, the interface is a suitable place to include these items that need to be globally available. Many of these are documented in the JavaScript Reference and the DOM Reference. In a tabbed browser, each tab is represented by its own object; the global window seen by JavaScript code running within a given tab always represents the tab in which the code is running. That said, even in a tabbed browser, some properties and methods still apply to the overall window that contains the tab, such as resizeTo() and innerHeight. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.

EventTarget

Window

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Window()
factory

Properties

caches CacheStorage

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
clientInformation Navigator

Available on Window, provided by the PropsWindow extension

no setter
closed bool

Available on Window, provided by the PropsWindow extension

no setter
console Console

Available on Window, provided by the MoreWindow extension

no setter
cookieStore CookieStore

Available on Window, provided by the PropsWindow extension

no setter
crossOriginIsolated bool

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
crypto Crypto

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
customElements CustomElementRegistry

Available on Window, provided by the PropsWindow extension

no setter
devicePixelRatio double

Available on Window, provided by the PropsWindow extension

no setter
document Document

Available on Window, provided by the PropsWindow extension

no setter
event → dynamic

Available on Window, provided by the PropsWindow extension

no setter
external External

Available on Window, provided by the PropsWindow extension

no setter
frameElement Element?

Available on Window, provided by the PropsWindow extension

no setter
frames Window

Available on Window, provided by the PropsWindow extension

no setter
hashCode int
The hash code for this object.
no setterinherited
history History

Available on Window, provided by the PropsWindow extension

no setter
indexedDB IDBFactory

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
innerHeight int

Available on Window, provided by the PropsWindow extension

no setter
innerWidth int

Available on Window, provided by the PropsWindow extension

no setter
isSecureContext bool

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
launchQueue LaunchQueue

Available on Window, provided by the PropsWindow extension

no setter
length int

Available on Window, provided by the PropsWindow extension

no setter
localStorage Storage

Available on WindowLocalStorage, provided by the PropsWindowLocalStorage extension

no setter
location Location

Available on Window, provided by the PropsWindow extension

no setter
locationbar BarProp

Available on Window, provided by the PropsWindow extension

no setter

Available on Window, provided by the PropsWindow extension

no setter
name String

Available on Window, provided by the PropsWindow extension

getter/setter pair

Available on Window, provided by the PropsWindow extension

no setter

Available on Window, provided by the PropsWindow extension

no setter
onabort EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onafterprint EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onanimationcancel EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onanimationend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onanimationiteration EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onanimationstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onappinstalled EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
onauxclick EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onbeforeinput EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onbeforeinstallprompt EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
onbeforematch EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onbeforeprint EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onbeforeunload OnBeforeUnloadEventHandlerNonNull?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onbeforexrselect EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onblur EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncancel EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncanplay EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncanplaythrough EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onchange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onclick EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onclose EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncompassneedscalibration EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
oncontextlost EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncontextmenu EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncontextrestored EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oncuechange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondblclick EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondevicemotion EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
ondeviceorientation EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
ondeviceorientationabsolute EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
ondrag EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondragend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondragenter EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondragleave EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondragover EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondragstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondrop EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ondurationchange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onemptied EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onended EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onerror OnErrorEventHandlerNonNull?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onfocus EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onformdata EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ongamepadconnected EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
ongamepaddisconnected EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
ongotpointercapture EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onhashchange EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
oninput EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
oninvalid EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onkeydown EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onkeypress EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onkeyup EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onlanguagechange EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onload EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onloadeddata EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onloadedmetadata EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onloadstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onlostpointercapture EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmessage EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onmessageerror EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onmousedown EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmouseenter EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmouseleave EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmousemove EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmouseout EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmouseover EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onmouseup EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onoffline EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
ononline EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onorientationchange EventHandlerNonNull<Event>?

Available on Window, provided by the PropsWindow extension

getter/setter pair
onpagehide EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onpageshow EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onpause EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onplay EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onplaying EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointercancel EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerdown EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerenter EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerleave EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointermove EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerout EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerover EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerrawupdate EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpointerup EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onpopstate EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onportalactivate EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onprogress EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onratechange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onrejectionhandled EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onreset EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onresize EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onscroll EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onsecuritypolicyviolation EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onseeked EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onseeking EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onselect EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onselectionchange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onselectstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onslotchange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onstalled EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onstorage EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onsubmit EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onsuspend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontimeupdate EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontoggle EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontouchcancel EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontouchend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontouchmove EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontouchstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontransitioncancel EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontransitionend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontransitionrun EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
ontransitionstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onunhandledrejection EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onunload EventHandlerNonNull<Event>?

Available on WindowEventHandlers, provided by the PropsWindowEventHandlers extension

getter/setter pair
onvolumechange EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onwaiting EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onwebkitanimationend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onwebkitanimationiteration EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onwebkitanimationstart EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onwebkittransitionend EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
onwheel EventHandlerNonNull<Event>?

Available on GlobalEventHandlers, provided by the PropsGlobalEventHandlers extension

getter/setter pair
opener ↔ dynamic

Available on Window, provided by the PropsWindow extension

getter/setter pair
orientation int

Available on Window, provided by the PropsWindow extension

no setter
origin String

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
originAgentCluster bool

Available on Window, provided by the PropsWindow extension

no setter
outerHeight int

Available on Window, provided by the PropsWindow extension

no setter
outerWidth int

Available on Window, provided by the PropsWindow extension

no setter
pageXOffset double

Available on Window, provided by the PropsWindow extension

no setter
pageYOffset double

Available on Window, provided by the PropsWindow extension

no setter
parent Window?

Available on Window, provided by the PropsWindow extension

no setter
performance Performance

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
personalbar BarProp

Available on Window, provided by the PropsWindow extension

no setter
portalHost PortalHost?

Available on Window, provided by the PropsWindow extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduler Scheduler

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
screen Screen

Available on Window, provided by the PropsWindow extension

no setter
screenLeft int

Available on Window, provided by the PropsWindow extension

no setter
screenTop int

Available on Window, provided by the PropsWindow extension

no setter
screenX int

Available on Window, provided by the PropsWindow extension

no setter
screenY int

Available on Window, provided by the PropsWindow extension

no setter
scrollbars BarProp

Available on Window, provided by the PropsWindow extension

no setter
scrollX double

Available on Window, provided by the PropsWindow extension

no setter
scrollY double

Available on Window, provided by the PropsWindow extension

no setter
self Window

Available on Window, provided by the PropsWindow extension

no setter
sessionStorage Storage

Available on WindowSessionStorage, provided by the PropsWindowSessionStorage extension

no setter
speechSynthesis SpeechSynthesis

Available on Window, provided by the PropsWindow extension

no setter
status String

Available on Window, provided by the PropsWindow extension

getter/setter pair
statusbar BarProp

Available on Window, provided by the PropsWindow extension

no setter
toolbar BarProp

Available on Window, provided by the PropsWindow extension

no setter
top Window?

Available on Window, provided by the PropsWindow extension

no setter
trustedTypes TrustedTypePolicyFactory

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

no setter
visualViewport VisualViewport?

Available on Window, provided by the PropsWindow extension

no setter
window Window

Available on Window, provided by the PropsWindow extension

no setter

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

alert([String? message]) → void

Available on Window, provided by the PropsWindow extension

atob(String data) String

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

blur() → void

Available on Window, provided by the PropsWindow extension

btoa(String data) String

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

cancelAnimationFrame(int handle) → void

Available on AnimationFrameProvider, provided by the PropsAnimationFrameProvider extension

cancelIdleCallback(int handle) → void

Available on Window, provided by the PropsWindow extension

captureEvents() → void

Available on Window, provided by the PropsWindow extension

clearInterval([int? id = 0]) → void

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

clearTimeout([int? id = 0]) → void

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

close() → void

Available on Window, provided by the PropsWindow extension

confirm([String? message = '']) bool

Available on Window, provided by the PropsWindow extension

createImageBitmap(dynamic image, [int? sx, int? sy, int? sw, int? sh, ImageBitmapOptions? options]) Future<ImageBitmap>

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

fetch(dynamic input, [RequestInit? init]) Future<Response>

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

focus() → void

Available on Window, provided by the PropsWindow extension

getComputedStyle(Element elt, [String? pseudoElt]) CSSStyleDeclaration

Available on Window, provided by the PropsWindow extension

getDigitalGoodsService(String serviceProvider) Future<DigitalGoodsService>

Available on Window, provided by the PropsWindow extension

getScreenDetails() Future<ScreenDetails>

Available on Window, provided by the PropsWindow extension

getSelection() Selection?

Available on Window, provided by the PropsWindow extension

matchMedia(String query) MediaQueryList

Available on Window, provided by the PropsWindow extension

moveBy(int x, int y) → void

Available on Window, provided by the PropsWindow extension

moveTo(int x, int y) → void

Available on Window, provided by the PropsWindow extension

Available on Window, provided by the PropsWindow extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open([String? url = '', String? target = '_blank', String? features = '']) Window?

Available on Window, provided by the PropsWindow extension

postMessage(dynamic message, [String? targetOrigin, Iterable? transfer = const []]) → void

Available on Window, provided by the PropsWindow extension

print() → void

Available on Window, provided by the PropsWindow extension

prompt([String? message = '', String? mDefault = '']) String?

Available on Window, provided by the PropsWindow extension

queryLocalFonts([QueryOptions? options]) Future<Iterable<FontData>>

Available on Window, provided by the PropsWindow extension

queueMicrotask(VoidFunction callback) → void

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

releaseEvents() → void

Available on Window, provided by the PropsWindow extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

reportError(dynamic e) → void

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

requestAnimationFrame(FrameRequestCallback callback) int

Available on AnimationFrameProvider, provided by the PropsAnimationFrameProvider extension

requestIdleCallback(IdleRequestCallback callback, [IdleRequestOptions? options]) int

Available on Window, provided by the PropsWindow extension

resizeBy(int x, int y) → void

Available on Window, provided by the PropsWindow extension

resizeTo(int width, int height) → void

Available on Window, provided by the PropsWindow extension

scroll([dynamic x, dynamic y]) → void

Available on Window, provided by the PropsWindow extension

scrollBy([dynamic x, dynamic y]) → void

Available on Window, provided by the PropsWindow extension

scrollTo([dynamic x, dynamic y]) → void

Available on Window, provided by the PropsWindow extension

setInterval(dynamic handler, [int? timeout = 0, dynamic arguments1, dynamic arguments2, dynamic arguments3]) int

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

setTimeout(dynamic handler, [int? timeout = 0, dynamic arguments1, dynamic arguments2, dynamic arguments3]) int

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

showDirectoryPicker([DirectoryPickerOptions? options]) Future<FileSystemDirectoryHandle>

Available on Window, provided by the PropsWindow extension

showOpenFilePicker([OpenFilePickerOptions? options]) Future<Iterable<FileSystemFileHandle>>

Available on Window, provided by the PropsWindow extension

showSaveFilePicker([SaveFilePickerOptions? options]) Future<FileSystemFileHandle>

Available on Window, provided by the PropsWindow extension

stop() → void

Available on Window, provided by the PropsWindow extension

structuredClone(dynamic value, [StructuredSerializeOptions? options]) → dynamic

Available on WindowOrWorkerGlobalScope, provided by the PropsWindowOrWorkerGlobalScope extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited