FiveStarWidget constructor
FiveStarWidget(})
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);