isSupported property
bool
get
isSupported
Whether this browser exposes the Service Worker API. False in insecure contexts (non-https, non-localhost) and unsupported browsers, in which case init returns false and notifications cannot be shown.
Implementation
bool get isSupported => web.window.navigator.has('serviceWorker');