serviceWorker top-level property

dynamic get serviceWorker

This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. Available only in secure contexts.

MDN Reference

Implementation

_i2.dynamic get serviceWorker => _i4.getProperty(
      _self,
      'ServiceWorker',
    );