reset method Null safety

void reset()

Reset the buffer.

Implementation

void reset() {
  length = 0;
}