Buffer constructor

Buffer(
  1. int width,
  2. int height
)

Creates a new buffer of width by height initialized with transparent empty cells.

Implementation

Buffer(this.width, this.height)
  : cells = List.generate(width * height, (_) => Cell.empty());