fillStyle method
Implementation
void fillStyle(Rect rect, Style style) {
final clipped = rect.intersect(area);
if (clipped.isEmpty) return;
for (var dy = 0; dy < clipped.height; dy++) {
for (var dx = 0; dx < clipped.width; dx++) {
final current = get(clipped.x + dx, clipped.y + dy);
set(clipped.x + dx, clipped.y + dy,
current.copyWith(style: current.style.over(style)));
}
}
}