Buffer.blank constructor

Buffer.blank(
  1. int width,
  2. int height, {
  3. bool defaultBlend = true,
})

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

Implementation

Buffer.blank(this.width, this.height, {this.defaultBlend = true})
  : _emptyModifiers = Modifier.none,
    characters = List.filled(width * height, ' '),
    attributes = Uint32List(width * height * 3);