fetchEvent top-level property

dynamic get fetchEvent

This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.

MDN Reference

Implementation

_i2.dynamic get fetchEvent => _i4.getProperty(
      _self,
      'FetchEvent',
    );