onControllerChange property

Stream<Event> get onControllerChange

An event handler fired whenever a controllerchange event occurs — when the document's associated ServiceWorkerRegistration acquires a new ServiceWorkerRegistration.active worker.

Implementation

Stream<Event> get onControllerChange =>
    _onControllerChange ??= callbackToStream(
        _delegate, 'oncontrollerchange', (Object j) => j as Event);