VentCircleProgressBar.builder constructor

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

Implementation

const VentCircleProgressBar.builder({
  Key? key,
  required this.progress,
  required this.builder,
  this.size = 48,
  this.strokeWidth = 6.0,
  this.backgroundColor = const Color(0xFFCDCFDB),
  this.progressColor = VentColorSwatch.Primary,
  this.startAngle = .625,
  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'),
      textValue = null,
      textStyle = null,
      super(key: key);