writeAllBytes method

void writeAllBytes(
  1. Iterable<BytesEmitter> bytes, {
  2. String? description,
})

Writes all the bytes to this bytes instance.

Implementation

void writeAllBytes(Iterable<BytesEmitter> bytes, {String? description}) {
  if (description != null) {
    _data.add(BytesEmitter(data: bytes, description: description));
    return;
  }

  for (var bs in bytes) {
    writeBytes(bs);
  }
}