SharedWorker constructor

SharedWorker(
  1. String scriptURL,
  2. [String? name]
)

Implementation

factory SharedWorker(String scriptURL, [String? name]) {
  if (name != null) {
    return SharedWorker._create_1(scriptURL, name);
  }
  return SharedWorker._create_2(scriptURL);
}