writeAll method

void writeAll(
  1. Iterable<List<int>> data, {
  2. String? description,
})

Writes all data to this bytes instance.

Implementation

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

  for (var e in data) {
    write(e);
  }
}