RequestInit constructor

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

Implementation

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