getRegistration function
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]) =>
_self!.getRegistration(scope);