onStateChange property
An EventListener property called whenever an event of type statechange is fired; it is basically fired anytime the ServiceWorker.state changes.
Implementation
Stream<Event> get onStateChange => _onStateChange ??=
callbackToStream(_delegate, 'onstatechange', (Object j) => j as Event);