startAngle property

double startAngle

Returns angle from which the text rendering starts.

Zero radians is the point on the right hand side of the circle and positive angles goes clockwise.

Whether it is start or end of the text depends on direction, but it's always correct to assume that startAngle + sweepAngle == finalAngle.

Implementation

double get startAngle {
  switch (direction) {
    case Direction.clockwise:
      return _angleWithAlignment - math.pi / 2;
    case Direction.counterClockwise:
      return _angleWithAlignment + math.pi / 2 - sweepAngle;
  }
}