writeBytes method

void writeBytes(
  1. BytesEmitter bytes, {
  2. String? description,
})

Writes bytes to this bytes instance.

Implementation

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

  _data.add(bytes);
}