CircularPercentIndicator constructor

CircularPercentIndicator({
  1. Key? key,
  2. PercentModel percentModel = PercentModel.normal,
  3. AnimationSet animationSet = AnimationSet.normal,
  4. double startAngle = 0.0,
  5. required double size,
  6. LineModel progressModel = LineModel.progressModel,
  7. LineModel backgroundModel = LineModel.backModel,
  8. LinearGradient? linearGradient,
  9. Widget? center,
  10. bool addAutomaticKeepAlive = true,
  11. StrokeCap? strokeCap,
  12. ArcType arcType = ArcType.FULL,
  13. bool reverse = false,
  14. MaskFilter? maskFilter,
  15. bool rotateLinearGradient = false,
})

Implementation

CircularPercentIndicator({
  Key? key,
  this.percentModel = PercentModel.normal,
  this.animationSet = AnimationSet.normal,
  this.startAngle = 0.0,
  required this.size,
  this.progressModel = LineModel.progressModel,
  this.backgroundModel = LineModel.backModel,
  this.linearGradient,
  this.center,
  this.addAutomaticKeepAlive = true,
  this.strokeCap,
  this.arcType = ArcType.FULL,
  this.reverse = false,
  this.maskFilter,
  this.rotateLinearGradient = false,
}) : super(key: key) {
  assert(startAngle >= 0.0);
  if (percentModel.percent < 0.0 || percentModel.percent > 1.0) {
    throw Exception('Percent value must be a double between 0.0 and 1.0');
  }
}