reset method Null safety

  1. @override
void reset()
override

Reset to the beginning of the stream.

Implementation

@override
void reset() {
  _filePosition = 0;
  _file.setPositionSync(0);
  _readBuffer();
}