CircularPercentIndicator constructor
CircularPercentIndicator({
- Key? key,
- PercentModel percentModel = PercentModel.normal,
- AnimationSet animationSet = AnimationSet.normal,
- double startAngle = 0.0,
- required double size,
- LineModel progressModel = LineModel.progressModel,
- LineModel backgroundModel = LineModel.backModel,
- LinearGradient? linearGradient,
- Widget? center,
- bool addAutomaticKeepAlive = true,
- StrokeCap? strokeCap,
- ArcType arcType = ArcType.FULL,
- bool reverse = false,
- MaskFilter? maskFilter,
- 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');
}
}