Arc constructor

const Arc({
  1. Key? key,
  2. double centerX = 0,
  3. double centerY = 0,
  4. required double outerRadius,
  5. double innerRadius = 0,
  6. required double startAngle,
  7. required double endAngle,
  8. Color color = const Color(0xFF000000),
  9. Color? strokeColor,
  10. double strokeWidth = 1.0,
  11. double cornerRadius = 0,
  12. double padAngle = 0,
  13. Shader? shader,
})

Creates an arc widget.

Implementation

const Arc({
  super.key,
  this.centerX = 0,
  this.centerY = 0,
  required this.outerRadius,
  this.innerRadius = 0,
  required this.startAngle,
  required this.endAngle,
  this.color = const Color(0xFF000000),
  this.strokeColor,
  this.strokeWidth = 1.0,
  this.cornerRadius = 0,
  this.padAngle = 0,
  this.shader,
});