updateScope method

Future<void> updateScope(
  1. String scope
)

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);
}