writeByte method

void writeByte(
  1. int b, {
  2. String? description,
})
inherited

Writes a byte b to this bytes instance.

Implementation

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

  _data.add(b);
}