drawPath method

void drawPath (Path path, 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).

Implementation

void drawPath(Path path, Paint paint) {
  assert(path != null); // path is checked on the engine side
  assert(paint != null);
  _drawPath(path, paint._objects, paint._data);
}