copyWithFetchRequest method

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

Implementation

FetchRequest copyWithFetchRequest({
  WebUri? url,
  String? method,
  Map<String, dynamic>? headers,
  dynamic body,
  String? mode,
  FetchRequestCredential? credentials,
  String? cache,
  String? redirect,
  String? referrer,
  ReferrerPolicy? referrerPolicy,
  String? integrity,
  bool? keepalive,
  FetchRequestAction? action,
}) {
  return copyWith(
    url: url,
    method: method,
    headers: headers,
    body: body,
    mode: mode,
    credentials: credentials,
    cache: cache,
    redirect: redirect,
    referrer: referrer,
    referrerPolicy: referrerPolicy,
    integrity: integrity,
    keepalive: keepalive,
    action: action,
  );
}