updateScope method
Re-registers the currently registered worker script (bundled, or the
custom URL last passed to registerServiceWorker) under scope.
Backs the platform interface's scopeUrl setter.
Implementation
Future<void> updateScope(String scope) {
return registerServiceWorker(url: _customUrl, scope: scope);
}