clear method Null safety

void clear()

Clear the buffer.

Implementation

void clear() {
  _buffer = Uint8List(_blockSize);
  length = 0;
}