writeStringStream method

Future<void> writeStringStream(
  1. Stream<String> stream
)

Writes a string value from a stream of string parts.

Implementation

Future<void> writeStringStream(Stream<String> stream) async {
  final comma = _startValue();
  await _writeRawString('${comma ? ',' : ''}"');
  await _writeRawStream(stream.map(_encodeStringContents));
  await _writeRawString('"');
  await _endValue();
}