RequestInit constructor

RequestInit({
  1. Object? body,
  2. RequestCache? cache,
  3. RequestCredentials? credentials,
  4. Object? headers,
  5. String? integrity,
  6. bool? keepalive,
  7. String? method,
  8. RequestMode? mode,
  9. RequestRedirect? redirect,
  10. String? referrer,
  11. ReferrerPolicy? referrerPolicy,
  12. AbortSignal? signal,
  13. dynamic window,
})

Implementation

factory RequestInit({
  _i2.Object? body,
  _i3.RequestCache? cache,
  _i3.RequestCredentials? credentials,
  _i2.Object? headers,
  _i2.String? integrity,
  _i2.bool? keepalive,
  _i2.String? method,
  _i3.RequestMode? mode,
  _i3.RequestRedirect? redirect,
  _i2.String? referrer,
  _i3.ReferrerPolicy? referrerPolicy,
  _i3.AbortSignal? signal,
  _i2.dynamic window,
}) =>
    RequestInit._(
      body: body ?? _i6.undefined ?? _i6.undefined,
      cache: cache?.name ?? _i6.undefined,
      credentials: credentials?.name ?? _i6.undefined,
      headers: headers ?? _i6.undefined,
      integrity: integrity,
      keepalive: keepalive,
      method: method,
      mode: mode?.name ?? _i6.undefined,
      redirect: redirect?.name ?? _i6.undefined,
      referrer: referrer,
      referrerPolicy: referrerPolicy?.name ?? _i6.undefined,
      signal: signal ?? _i6.undefined,
      window: window,
    );