WindowOrWorkerGlobalScope class

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

WindowOrWorkerGlobalScope({CacheStorage? caches, bool? crossOriginIsolated, Crypto? crypto, IDBFactory? indexedDB, bool? isSecureContext, String? origin, Performance? performance, String atob(String)?, String btoa(String)?, void clearInterval([num?])?, void clearTimeout([num?])?, Future<Response> fetch(Object, [RequestInit?])?, void queueMicrotask(VoidFunction)?, void reportError([dynamic])?, num setInterval(Object, [num?, Iterable?])?, num setTimeout(Object, [num?, Iterable?])?, T structuredClone<T>(T, [StructuredSerializeOptions?])?})
factory

Properties

atob String Function(String)

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
btoa String Function(String)

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
caches CacheStorage

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

Available only in secure contexts.
no setter
clearInterval ↔ void Function([num?])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
clearTimeout ↔ void Function([num?])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
createImageBitmap → ({Future<ImageBitmap> Function(Object image, [ImageBitmapOptions? options]) $1, Future<ImageBitmap> Function(Object image, num sx, num sy, num sw, num sh, [ImageBitmapOptions? options]) $2})

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

Overload accessor: $1, $2
no setter
crossOriginIsolated bool

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

MDN Reference
no setter
crypto Crypto

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

MDN Reference
no setter
fetch Future<Response> Function(Object, [RequestInit?])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
indexedDB IDBFactory

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

MDN Reference
no setter
isSecureContext bool

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

MDN Reference
no setter
origin String

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

MDN Reference
no setter
performance Performance

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

MDN Reference
no setter
queueMicrotask ↔ void Function(VoidFunction)

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
reportError ↔ void Function([dynamic])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setInterval num Function(Object, [num?, Iterable?])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
setTimeout num Function(Object, [num?, Iterable?])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair
structuredClone ↔ T Function<T>(T, [StructuredSerializeOptions?])

Available on WindowOrWorkerGlobalScope, provided by the WindowOrWorkerGlobalScope$Typings extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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