generatePoints method

  1. @override
void generatePoints()
override

Implementation

@override
void generatePoints() {
  var innerArc = Arc(
    startAngle: startAngle,
    angle: angle,
    radius: innerRadius,
    arcCenter: arcCenter,
  );
  var outerArc = Arc(
    startAngle: startAngle,
    angle: angle,
    radius: outerRadius,
    arcCenter: arcCenter,
  );

  outerArc.reversePoints();
  appendPoints(innerArc.points);
  addLineTo(outerArc.points.first);
  appendPoints(outerArc.points);
  addLineTo(innerArc.points.first);
}