VentCircleProgressBar constructor

const VentCircleProgressBar({
  1. Key? key,
  2. required double progress,
  3. double size = 48,
  4. double strokeWidth = 6.0,
  5. Color backgroundColor = const Color(0xFFCDCFDB),
  6. Color progressColor = VentColorSwatch.Primary,
  7. double startAngle = .625,
  8. String? textValue,
  9. TextStyle? textStyle,
  10. Duration animationDuration = const Duration(seconds: 1),
  11. bool withAnimation = true,
  12. Curve curve = Curves.linear,
})

Implementation

const VentCircleProgressBar({
  Key? key,
  required this.progress,
  this.size = 48,
  this.strokeWidth = 6.0,
  this.backgroundColor = const Color(0xFFCDCFDB),
  this.progressColor = VentColorSwatch.Primary,
  this.startAngle = .625,
  this.textValue,
  this.textStyle,
  this.animationDuration = const Duration(seconds: 1),
  this.withAnimation = true,
  this.curve = Curves.linear,
})  : assert(
          progress >= 0 && progress <= 1, 'Progress must be between 0 and 1'),
      assert(startAngle >= 0 && startAngle <= 1,
          'Start angle must be between 0 and 1'),
      builder = null,
      super(key: key);