setStyleIn method
Apply style to all cells within styleArea.
Implementation
void setStyleIn(Rect styleArea, Style style) {
final clip = area.intersection(styleArea);
for (var row = clip.top; row < clip.bottom; row++) {
for (var col = clip.left; col < clip.right; col++) {
final cell = cellAt(Position(col, row));
cell?.setStyle(style);
}
}
}