ScreenBuffer constructor

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

Implementation

ScreenBuffer(this.width, this.height)
  : _cells = List<Cell>.filled(
      (width < 0 ? 0 : width) * (height < 0 ? 0 : height),
      Cell.blank,
    );