position property Null safety

int position
override

The current read position relative to the start of the buffer.

Implementation

@override
int get position => _position;
void position=(int v)
override

Implementation

@override
set position(int v) {
  if (v < _position) {
    rewind(_position - v);
  } else if (v > _position) {
    skip(v - _position);
  }
}