Body constructor

Body({
  1. ReadableStream<Uint8List>? body,
  2. bool? bodyUsed,
  3. Future<ByteBuffer> arrayBuffer()?,
  4. Future<Blob> blob()?,
  5. Future<FormData> formData()?,
  6. Future json()?,
  7. Future<String> text()?,
})

Implementation

factory Body({
  _i3.ReadableStream<_i10.Uint8List>? body,
  _i2.bool? bodyUsed,
  _i2.Future<_i10.ByteBuffer> Function()? arrayBuffer,
  _i2.Future<_i3.Blob> Function()? blob,
  _i2.Future<_i3.FormData> Function()? formData,
  _i2.Future<_i2.dynamic> Function()? json,
  _i2.Future<_i2.String> Function()? text,
}) =>
    Body._(
      body: body ?? _i6.undefined,
      bodyUsed: bodyUsed,
      arrayBuffer: arrayBuffer == null ? null : _i4.allowInterop(arrayBuffer),
      blob: blob == null ? null : _i4.allowInterop(blob),
      formData: formData == null ? null : _i4.allowInterop(formData),
      json: json == null ? null : _i4.allowInterop(json),
      text: text == null ? null : _i4.allowInterop(text),
    );