FetchRequest constructor

FetchRequest({
  1. FetchRequestAction? action,
  2. dynamic body,
  3. String? cache,
  4. FetchRequestCredential? credentials,
  5. Map<String, dynamic>? headers,
  6. String? integrity,
  7. bool? keepalive,
  8. String? method,
  9. String? mode,
  10. String? redirect,
  11. String? referrer,
  12. ReferrerPolicy? referrerPolicy,
  13. WebUri? url,
})

Implementation

FetchRequest({
  FetchRequestAction? action,
  this.body,
  this.cache,
  this.credentials,
  this.headers,
  this.integrity,
  this.keepalive,
  this.method,
  this.mode,
  this.redirect,
  this.referrer,
  this.referrerPolicy,
  this.url,
}) : action = action ?? FetchRequestAction.PROCEED;