skip method Null safety

  1. @override
void skip(
  1. int length
)
override

Move the read position by count bytes.

Implementation

@override
void skip(int length) {
  if ((_bufferPosition + length) < _bufferSize) {
    _bufferPosition += length;
    _position += length;
  } else {
    _position += length;
    _readBuffer();
  }
}