FiveStarWidget constructor

FiveStarWidget(
  1. double diameter, {
  2. Color color = Colors.red,
  3. double rotateAngle = 0.0,
  4. double strokeWidth = 1.0,
})

diameter - 五角星直径
color - 颜色
rotateAngle - 旋转角度
strokeWidth - 画笔粗细 strokeWidth - 画笔粗细

Implementation

FiveStarWidget(this.diameter,
    {Color color = Colors.red,
    double rotateAngle = 0.0,
    double strokeWidth = 1.0})
    : super(
          color: color,
          rotateAngle: rotateAngle,
          width: diameter,
          height: diameter,
          strokeWidth: strokeWidth);