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 subpaths within it are implicitly closed (see Path.close).

Source

void drawPath(Path path, Paint paint) {
  _drawPath(path, paint._objects, paint._data);
}