fillAttributes method

  1. @override
void fillAttributes({
  1. String? char,
  2. int? fg,
  3. int? bg,
  4. int? modifiers,
})
override

Fills the entire buffer with the specified attributes.

Implementation

@override
void fillAttributes({String? char, int? fg, int? bg, int? modifiers}) {
  for (var y = 0; y < bounds.height; y++) {
    for (var x = 0; x < bounds.width; x++) {
      parent.setAttributes(
        bounds.x + x,
        bounds.y + y,
        char: char,
        fg: fg,
        bg: bg,
        modifiers: modifiers,
      );
    }
  }
}