paint method

  1. @override
dynamic paint(
  1. Canvas canvas,
  2. Paint? paint,
  3. Size size
)
override

Implementation

@override
paint(Canvas canvas, Paint? paint, Size size) {
  var circleSpacing = 4;
  var width = size.width;
  var height = size.height;
  for (int i = 0; i < 3; i++) {
    paint!.color = paint.color.withAlpha(alphaInts[i]);
    canvas.drawCircle(Offset(width / 2, height / 2),
        (width / 2 - circleSpacing) * scaleDoubles[i], paint);
  }
}