addArc method

void addArc(
  1. Rect bounds,
  2. double startAngle,
  3. double sweepAngle
)

Adds an arc

Implementation

void addArc(Rect bounds, double startAngle, double sweepAngle) {
  final List<List<double>> points = PdfGraphicsHelper.getBezierArcPoints(
      bounds.left,
      bounds.top,
      bounds.left + bounds.width,
      bounds.top + bounds.height,
      startAngle,
      sweepAngle);
  final List<double> list = <double>[];
  for (int i = 0; i < points.length; ++i) {
    final List<double> pt = points[i];
    list.clear();
    list.addAll(pt);
    _addPoints(list, PathPointType.bezier3);
  }
}