resize method

void resize(
  1. int columns,
  2. int rows
)

Implementation

void resize(int columns, int rows) {
  if (_disposed) return;
  _pendingColumns = columns;
  _pendingRows = rows;
  // Always flush synchronously so MirrorGrid tracks LayoutBuilder even while
  // a PTY drain is in flight (avoids painter clearing a viewport-sized area
  // but only drawing the stale grid row count).
  _flushPendingResize();
}