dump method

String dump()

The rows of the screen, every cell's text with the blanks that end them, a line each.

Implementation

String dump() => [
  for (final row in _grid) row.map((c) => c.role == -1 ? '' : c.text).join(),
].join('\n');