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