clear method
Resets all cells in the buffer to transparent empty cells.
Implementation
@override
void clear() {
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: ' ',
modifiers: Modifier.transparent,
fg: 0,
bg: 0,
);
}
}
}