seek method

  1. @override
int seek(
  1. int position
)
override

Changes the read/write cursor position.

Implementation

@override
int seek(int position) {
  if (position < 0) {
    position = 0;
  } else if (position > _length) {
    position = _length;
  }
  _position = position;
  return position;
}