drawPath abstract method

void drawPath(
  1. Path path,
  2. Paint paint
)

Draws the given Path with the given Paint.

Whether this shape is filled or stroked (or both) is controlled by Paint.style. If the path is filled, then sub-paths within it are implicitly closed (see Path.close).

When drawing simple shapes (such as rectangles, ovals, or rounded rectangles), prefer using methods such as drawRect, drawOval, or drawRRect over drawPath. Methods that draw simple shapes are generally more efficient than drawing a Path.

Implementation

void drawPath(Path path, Paint paint);