LinearPercentIndicator constructor
LinearPercentIndicator({
- Key? key,
- PercentModel percentModel = PercentModel.normal,
- AnimationSet animationSet = AnimationSet.normal,
- bool isRTL = false,
- double? width,
- double lineHeight = 5.0,
- ColorGradientModel backgroundGradient = ColorGradientModel.backModel,
- ColorGradientModel progressGradient = ColorGradientModel.progressModel,
- CenterSet centerSet = CenterSet.normal,
- StrokeCap strokeCap = StrokeCap.butt,
- MaskFilter? maskFilter,
- bool clipLinearGradient = false,
- bool addAutomaticKeepAlive = true,
Implementation
LinearPercentIndicator(
{Key? key,
this.percentModel = PercentModel.normal,
this.animationSet = AnimationSet.normal,
this.isRTL = false,
this.width,
this.lineHeight = 5.0,
this.backgroundGradient = ColorGradientModel.backModel,
this.progressGradient = ColorGradientModel.progressModel,
this.centerSet = CenterSet.normal,
this.strokeCap = StrokeCap.butt,
this.maskFilter,
this.clipLinearGradient = false,
this.addAutomaticKeepAlive = true})
: super(key: key) {
if (percentModel.percent < 0.0 || percentModel.percent > 1.0) {
throw Exception('Percent value must be a double between 0.0 and 1.0');
}
}