fillArea function
Fills area of screen with cell.
Implementation
void fillArea(Screen screen, Cell? cell, Rectangle area) {
if (screen is FillAreaScreen) {
screen.fillArea(cell, area);
return;
}
for (var y = area.minY; y < area.maxY; y++) {
for (var x = area.minX; x < area.maxX; x++) {
screen.setCell(x, y, cell);
}
}
}