flush method
void
flush()
Implementation
void flush() {
console.move_cursor(
column: 0,
row: 0,
);
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
final pixel = pixels[x][y];
console.raw_console.write('\x1b[48;5;${pixel.color}m ');
console.move_cursor(column: x, row: y);
}
}
}