ProgressRing constructor

const ProgressRing({
  1. Key? key,
  2. required double value,
  3. double size = 100,
  4. double strokeWidth = 12,
  5. Gradient? gradient,
  6. Color? trackColor,
  7. double startAngle = -math.pi / 2,
  8. Duration animationDuration = const Duration(milliseconds: 900),
  9. Curve animationCurve = Curves.easeOut,
  10. Widget? child,
})

Implementation

const ProgressRing({
  super.key,
  required this.value,
  this.size = 100,
  this.strokeWidth = 12,
  this.gradient,
  this.trackColor,
  this.startAngle = -math.pi / 2,
  this.animationDuration = const Duration(milliseconds: 900),
  this.animationCurve = Curves.easeOut,
  this.child,
}) : assert(value >= 0 && value <= 1, 'value must be between 0 and 1');