fillRect method

void fillRect(
  1. double x,
  2. double y,
  3. double w,
  4. double h,
)

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);
  });
}