renderPolygon method

void renderPolygon(
  1. Canvas canvas,
  2. List<Offset> points
)

Implementation

void renderPolygon(Canvas canvas, List<Offset> points) {
  final path = _path
    ..reset()
    ..addPolygon(points, true);
  // TODO(Spydon): Use drawVertices instead.
  canvas.drawPath(path, paint);
}