ServiceWorkerClients class

Represents a container for a list of Client objects; the main way to access the active service worker clients at the current origin.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

claim() Future<void>
Allows an active Service Worker to set itself as the active worker for a client page when the worker and the page are in the same scope.
matchAll([ServiceWorkerClientsMatchOptions? options]) Future<List<ServiceWorkerClient>>
Gets a list of service worker clients and returns them in a Promise. Include the options parameter to return all service worker clients whose origin is the same as the associated service worker's origin. If options are not included, the method returns only the service worker clients controlled by the service worker.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openWindow(String url) Future<WindowClient>
Opens a service worker Client in a new browser window. in the window.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String clientId) Future<ServiceWorkerClient>
Gets a service worker client matching a given id and returns it in a Promise.