DedicatedWorkerGlobalScope$Typings extension

on

Properties

addEventListener → ({void Function<K$>(DedicatedWorkerGlobalScopeEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
close ↔ void Function()
getter/setter pair
name String
Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
no setter
onmessage ↔ dynamic Function(MessageEvent)?
MDN Reference
getter/setter pair
onmessageerror ↔ dynamic Function(MessageEvent)?
MDN Reference
getter/setter pair
postMessage → ({void Function(List<Object> transfer, [dynamic message]) $1, void Function([dynamic message, StructuredSerializeOptions? options]) $2})
Overload accessor: $1, $2
no setter
removeEventListener → ({void Function<K$>(DedicatedWorkerGlobalScopeEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter