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) {
  _buffer[_bufferPosition++] = value;
  if (_bufferPosition == _buffer.length) {
    flush();
  }
  _length++;
}