Buffer.blank constructor

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

Creates a new buffer of width by height initialized with solid blank cells.

Implementation

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