WorkerGlobalScope class
- Inheritance
- Object
- EventTarget
- WorkerGlobalScope
- Implemented types
- Implementers
- Annotations
- @Native.new("WorkerGlobalScope")
Properties
- addressSpace→String?
- no setter
- caches→CacheStorage?
- no setter
- crypto→Crypto?
- no setter
- hashCode→int
- The hash code for this object.no setterinherited
- indexedDB→IdbFactory?
- no setter
- isSecureContext→bool?
- no setter
- location→ _WorkerLocation
- no setter
- navigator→ _WorkerNavigator
- no setter
- on→Events
- This is an ease-of-use accessor for event streams which should only beused when an explicit accessor is not available.no setterinherited
- onError→Stream<
Event> - Stream of
errorevents handled by thisWorkerGlobalScope.no setter - origin→String?
- no setter
- performance→WorkerPerformance?
- no setter
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- self→WorkerGlobalScope
- no setter
Methods
- addEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- atob(
Stringatob)→String - override
- btoa(
Stringbtoa)→String - override
- dispatchEvent(
Eventevent)→bool - inherited
- fetch(
dynamicinput, [Map?init])→Future - importScripts(
Stringurls)→ void - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- removeEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited
Static Properties
- instance→WorkerGlobalScope
- no setter
Constants
- errorEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
errorevents to eventhandlers that are not necessarily instances ofWorkerGlobalScope.