rewind method

  1. @override
void rewind([
  1. int length = 1
])
override

Rewind the read head of the stream by the given number of bytes.

Implementation

@override
void rewind([int length = 1]) {
  _position -= length;
  if (_position < 0) {
    _position = 0;
  }
}