rect method

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

Implementation

void rect(double x, double y, double w, double h) {
  addAction((Canvas canvas, Size size) {
    path2d.rect(x, y, w, h);
  });
}