WorkerOptions class
Represents the options that can be passed when creating a JavaScript Web Worker.
This is used to interop with the JS WorkerOptions
object.
Example (in JS):
new Worker('worker.js', { type: 'module' });
Dart usage (interop):
final options = WorkerOptions(type: 'module');
See: https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker
- Annotations
-
- @JS()
- @anonymous
- @staticInterop
Constructors
- WorkerOptions.new({String type})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited