position property

  1. @override
int get position
override

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

Implementation

@override
int get position => _position;
  1. @override
set position (int v)
override

Implementation

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