backgroundRingPaint method

Paint backgroundRingPaint(
  1. double width
)

Paint for background ring.

Creates a background ring paint with width of the ring Since this stays out of animation, we dont need to cache this.

Implementation

Paint backgroundRingPaint(double width) {
  final _ringBackgroundColor =
      backgroundColor ?? darken(colors.first.first, 85);
  return Paint()
    ..color = _ringBackgroundColor
    ..strokeWidth = width
    ..style = PaintingStyle.stroke;
}