Dart SDK
dart:html
WorkerGlobalScope
class
WorkerGlobalScope
Constants
Properties
Methods
Constants
errorEvent
PERSISTENT
TEMPORARY
Properties
console
crypto
indexedDB
location
navigator
performance
self
onError
on
Methods
close
importScripts
webkitRequestFileSystem
requestFileSystemSync
resolveLocalFileSystemSyncUrl
webkitResolveLocalFileSystemUrl
atob
btoa
addEventListener
removeEventListener
dispatchEvent
(Not documented.)
Annotations
DocsEditable()
DomName('WorkerGlobalScope')
Experimental()
Extends
Object
EventTarget
WorkerGlobalScope
Implements
WindowBase64
Implemented by
DedicatedWorkerGlobalScope
ServiceWorkerGlobalScope
SharedWorkerGlobalScope
Constants
EventStreamProvider
<
Event
>
errorEvent
=
const
EventStreamProvider
<
Event
>
('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of
WorkerGlobalScope
.
int
PERSISTENT
=
1
const
int
TEMPORARY
=
0
const
Properties
WorkerConsole
console
read-only
Crypto
crypto
read-only
IdbFactory
indexedDB
read-only
_WorkerLocation
location
read-only
_WorkerNavigator
navigator
read-only
WorkerPerformance
performance
read-only
WorkerGlobalScope
self
read-only
Stream
<
Event
>
onError
read-only
Stream of error events handled by this [WorkerGlobalScope].
Events
on
read-only ,
inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Methods
close
(
) →
void
importScripts
(
String
urls
) →
void
webkitRequestFileSystem
(
int
type
,
int
size
) →
Future
<
FileSystem
>
requestFileSystemSync
(
int
type
,
int
size
) →
_DOMFileSystemSync
resolveLocalFileSystemSyncUrl
(
String
url
) →
_EntrySync
webkitResolveLocalFileSystemUrl
(
String
url
) →
Future
<
Entry
>
atob
(
String
string
) →
String
btoa
(
String
string
) →
String
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited