draw method

  1. @override
void draw(
  1. Iterable<CellUpdate> updates
)
override

Write cell updates to the terminal display.

Implementation

@override
void draw(Iterable<CellUpdate> updates) {
  for (final update in updates) {
    if (_buffer.area.contains(Position(update.x, update.y))) {
      _buffer.setCell(Position(update.x, update.y), update.cell);
    }
  }
}