CircleShape constructor

CircleShape({
  1. double borderWidth = 0,
  2. Color borderColor = Colors.white,
})

Creates a new CircleShape with optional border styling.

borderWidth - Width of the border stroke. Defaults to 0 (no border). borderColor - Color of the border. Defaults to Colors.white.

Implementation

CircleShape({this.borderWidth = 0, this.borderColor = Colors.white}) {
  this.borderPaint.isAntiAlias = true;
  this.borderPaint.style = PaintingStyle.stroke;
}