draw method

void draw(
  1. Canvas canvas
)

Implementation

void draw(Canvas canvas){

  canvas.drawCircle(Offset(_x, _y), starSize, _paint);

  canvas.drawLine(
    Offset(_x, _y),
    Offset(_x + _trailLength, _y - _trailLength),
    _trailPaint
  );

}