createWorker function

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

Creates a Worker using `new Worker().

Implementation

Worker createWorker(String filename, [WorkerOptions? options]) =>
    callConstructor(worker.Worker, [filename, options]);