clip method

void clip(
  1. PathFillType fillType
)

Implementation

void clip(PathFillType fillType) {
  addAction((Canvas canvas, Size size) {
    path2d.path.fillType = fillType;
    canvas.clipPath(path2d.path);
  });
}