getRegistration 方法

Future<ServiceWorkerRegistration> getRegistration(
  1. [String? documentURL]
)

实现

Future<ServiceWorkerRegistration> getRegistration([String? documentURL]) =>
    promiseToFuture<ServiceWorkerRegistration>(JS(
        "creates:ServiceWorkerRegistration;",
        "#.getRegistration(#)",
        this,
        documentURL));