CirclePainter constructor

const CirclePainter({
  1. required double radius,
  2. required Color color,
  3. double? strokeWidth,
  4. Color? strokeColor,
})

Creates a circle painter.

radius is the radius of the circle in logical pixels. color is the fill color of the circle. strokeWidth is the width of the circle's border. If null, no border is drawn. strokeColor is the color of the circle's border.

Implementation

const CirclePainter({
  required this.radius,
  required this.color,
  this.strokeWidth,
  this.strokeColor,
});