reset method
void
reset()
Clears accumulated output and restores the initial line offset.
The carriage-return configuration is intentionally retained, matching
upstream. _lastCarriageReturn is also left untouched because upstream's
reset only clears its two public buffers.
Implementation
void reset() {
html.clear();
lineOffsets
..clear()
..add(0);
}