polygon method

Drawable polygon(
  1. List<PointD> points
)

Draws a polygon with the specified vertices.

  • points is an array of PointD

Implementation

Drawable polygon(List<PointD> points) {
  final OpSet path = OpSetBuilder.linearPath(points, true, drawConfig!);
  return _buildDrawable(path, points);
}