seek method
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;
}