draw method
Implementation
void draw(Canvas canvas){
canvas.drawCircle(Offset(_x, _y), starSize, _paint);
canvas.drawLine(
Offset(_x, _y),
Offset(_x + _trailLength, _y - _trailLength),
_trailPaint
);
}
void draw(Canvas canvas){
canvas.drawCircle(Offset(_x, _y), starSize, _paint);
canvas.drawLine(
Offset(_x, _y),
Offset(_x + _trailLength, _y - _trailLength),
_trailPaint
);
}