fillRect method
Implementation
void fillRect(double x, double y, double w, double h) {
Rect rect = Rect.fromLTWH(x, y, w, h);
addAction((Canvas canvas, Size size) {
Paint paint = Paint()..color = fillStyle;
canvas.drawRect(rect, paint);
});
}