register method

Future<ServiceWorkerRegistration> register(
  1. String scriptURL, [
  2. RegistrationOptions? options
])

Implementation

Future<ServiceWorkerRegistration> register(String scriptURL,
        [RegistrationOptions? options]) =>
    js_util.promiseToFuture(
        js_util.callMethod(this, 'register', [scriptURL, options]));