writeRawStream method

Future<void> writeRawStream(
  1. Stream<List<int>> stream
)

Writes a raw JSON value from a stream of bytes, this stream must contain a valid json encoded object.

Implementation

Future<void> writeRawStream(Stream<List<int>> stream) async {
  if (_startValue()) {
    await _writeRawString(',');
  }
  await _writeRawStream(stream);
  await _endValue();
}