Worker constructor

Worker(
  1. String scriptURL, [
  2. WorkerOptions? options
])

Implementation

factory Worker(String scriptURL, [WorkerOptions? options]) =>
    Worker._(scriptURL, options ?? undefined);