draw method

void draw(
  1. Canvas canvas,
  2. Paint paint
)

Draw the shape

Implementation

void draw(Canvas canvas, Paint paint) {
  canvas.drawPath(path, paint);
}