draw method

void draw(
  1. Canvas canvas
)

Implementation

void draw(Canvas canvas) {
  for (final fill in fills) {
    fill.draw(canvas, path);
  }
  canvas.save();
  canvas.clipRect(Rect.fromLTWH(0, 0, width, height));
  canvas.translate(width * (originX ?? 0), height * (originY ?? 0));
  for (var drawable = _firstDrawable;
      drawable != null;
      drawable = drawable.prev) {
    drawable.draw(canvas);
  }
  canvas.restore();
}