dispose method
Releases the renderer-owned previous-frame buffer and transient state.
The buffer passed to render is borrowed and is never disposed. Repeated calls are safe.
Implementation
@override
void dispose() {
if (_disposed) return;
_disposed = true;
_curbuf?.dispose();
_curbuf = null;
_lastRenderedInput = null;
_tabs = null;
_oldhash = const [];
_newhash = const [];
_hashtab = const [];
_oldnum = const [];
_arena.clear();
_sixelRows = const <bool>[];
_alwaysUpdateCells.clear();
_deferredRetainedGraphics.clear();
_deferredDisplayPayloads.clear();
_styleTransitionCache = null;
_buf.clear();
_lastFlushedOutput = '';
}