fillStyle method

void fillStyle(
  1. Style style,
  2. [Rect? area]
)

Sets the style of all cells in the buffer to style.

Implementation

void fillStyle(Style style, [Rect? area]) {
  area ??= this.area();
  for (var y = area.top; y < area.bottom; y++) {
    for (var x = area.left; x < area.right; x++) {
      set(x, y, get(x, y).copyWith(style: style));
    }
  }
}