serviceWorker top-level property

  1. @Deprecated('Use top-level fields and methods instead.')
ServiceWorkerContainer? get serviceWorker

API entry point for web apps (window.navigator.serviceWorker). Deprecated, use top-level fields and methods instead.

Implementation

@Deprecated('Use top-level fields and methods instead.')
ServiceWorkerContainer? get serviceWorker => _self;