active property

ServiceWorker? active

Returns a service worker whose state is either activating or activated. This is initially set to null. An active worker will control a ServiceWorkerClient if the client's URL falls within the scope of the registration (the scope option set when ServiceWorkerContainer.register is first called).

Implementation

ServiceWorker? get active =>
    ServiceWorker._fromDelegate(_getProperty(_delegate, 'active'));