Not documented.

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

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

supported bool
read-only

Checks if this type is supported on the current platform.

Properties

on Events
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.

onError Stream<Event>
read-only

Stream of error events handled by this Worker.

onMessage Stream<MessageEvent>
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