RequestInit constructor
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,
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);