writeByte method Null safety

  1. @override
void writeByte(
  1. int value
)
override

Write a byte to the end of the buffer.

Implementation

@override
void writeByte(int value) {
  if (length == _buffer.length) {
    _expandBuffer();
  }
  _buffer[length++] = value & 0xff;
}