clearAll method

void clearAll()

Clears both the grid and the terminal, forcing a full redraw on next flush.

Implementation

void clearAll() {
  terminal.clear();
  _previousGridPopulated = false;
  for (int y = 0; y < terminal.height; y++) {
    _fillRow(y);
    _fillPreviousRow(y, const Cell(''));
  }
}