RegularPolygon constructor

RegularPolygon({
  1. int numSides = 6,
  2. double? startAngle,
  3. Color color = WHITE,
})

Implementation

RegularPolygon({int numSides = 6, double? startAngle, Color color = WHITE})
    : super(
        compassDirections(
          numSides: numSides,
          startVec: RIGHT.rotate(
            startAngle ?? (numSides % 2 == 0 ? 0 : 90 * DEGREES),
          ),
        ),
        color: color,
      );