resetFor method

void resetFor(
  1. String entryId
)

Forgets the previous entry's output.

The same boundary GuestErrors.resetFor draws, and the same argument: the panel scopes every other pane to the selected entry, and a console that did not would be the one place showing another demo's words under this demo's name.

Only on a change of entry, because this runs from didUpdateWidget and therefore on every rebuild — turning a knob would otherwise wipe what the previous knob printed, which is the one thing you turned it to see.

Implementation

void resetFor(String entryId) {
  if (_entryId == entryId) return;
  _entryId = entryId;
  _lines.clear();
  _dropped = 0;
}