getRegistration method
Gets a ServiceWorkerRegistration object whose scope URL matches the provided document URL. If the method can't return a ServiceWorkerRegistration, it returns a Promise. scope URL of the registration object you want to return. This is usually a relative URL.
Implementation
Future<ServiceWorkerRegistration> getRegistration([String? scope]) =>
promiseToFuture<Object, ServiceWorkerRegistration>(
_callMethod(_delegate, 'getRegistration', [scope]),
ServiceWorkerRegistration._);