setServiceWorkerClient method

dynamic setServiceWorkerClient(
  1. AndroidServiceWorkerClient? value
)

Sets the service worker client

Implementation

setServiceWorkerClient(AndroidServiceWorkerClient? value) async {
  await ServiceWorkerController.instance().setServiceWorkerClient(
      value != null
          ? ServiceWorkerClient(
              shouldInterceptRequest: value.shouldInterceptRequest)
          : null);
  _serviceWorkerClient = value;
}