fill method

void fill(
  1. PathFillType fillType
)

Implementation

void fill(PathFillType fillType) {
  addAction((Canvas canvas, Size size) {
    path2d.path.fillType = fillType;
    Paint paint = Paint()
      ..color = fillStyle
      ..style = PaintingStyle.fill;
    canvas.drawPath(path2d.path, paint);
  });
}