Buffer.blank constructor

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

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

Implementation

Buffer.blank(this.width, this.height)
  : characters = List.filled(width * height, ' '),
    attributes = Uint32List(width * height * 3);