Not documented.

Annotations
  • DocsEditable()
  • DomName('Worker')
  • SupportedBrowser(SupportedBrowser.CHROME)
  • SupportedBrowser(SupportedBrowser.FIREFOX)
  • SupportedBrowser(SupportedBrowser.IE, '10')
  • SupportedBrowser(SupportedBrowser.SAFARI)
  • Experimental()
Extends
Implements

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 Worker.
EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message')
const
Static factory designed to expose message events to event handlers that are not necessarily instances of Worker.

Static Properties

bool supported
read-only
Checks if this type is supported on the current platform.

Properties

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.
Stream<Event> onError
read-only
Stream of error events handled by this Worker.
Stream<MessageEvent> onMessage
read-only
Stream of message events handled by this Worker.

Constructors

Worker(String scriptUrl)

Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
dispatchEvent(Event event) → bool
inherited
postMessage(message, [List<MessagePort> transfer]) → void
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
terminate() → void