invalidate method

  1. @override
void invalidate()
override

Resets internal diff / cache state so the next render call produces a full redraw, without performing any terminal I/O.

Unlike clear, which may write escape sequences to the terminal and trigger stdout flushes, invalidate only touches in-memory state. This makes it safe to call from contexts (like hot reload reassembly) where the subsequent render should go through the normal message-queue pipeline rather than rendering directly.

Implementation

@override
void invalidate() {
  _lastView = null;
  _lastFrame = null;
}