PolygonProgress constructor
PolygonProgress({
- double? width,
- int side = 3,
- Color? progressBackground,
- Gradient? progressBackgroundGradient,
- double size = 5,
- double? borderRadius,
- bool reverse = false,
- StrokeCap strokeCap = StrokeCap.round,
- String? indeterminateText,
- double? indicatorRatio,
- double progress = 0.0,
- int progressReserve = 1,
- ProgressType progressType = ProgressType.indeterminate,
- Color foreground = Colors.orange,
- Color background = Colors.blueAccent,
- bool isProgressOpacityAnim = true,
- TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.white),
- String? prefix,
- TextStyle? prefixStyle,
- String? suffix,
- TextStyle? suffixStyle,
- BorderSide? borderSide,
- Gradient? foregroundGradient,
- Gradient? backgroundGradient,
- List<
BoxShadow> ? shadows,
Implementation
PolygonProgress({
this.width,
this.side = 3,
this.progressBackground,
this.progressBackgroundGradient,
this.size = 5,
this.borderRadius,
this.reverse = false,
this.strokeCap = StrokeCap.round,
this.indeterminateText,
this.indicatorRatio,
super.progress,
super.progressReserve,
super.progressType,
super.foreground,
super.background,
super.isProgressOpacityAnim,
super.textStyle,
super.prefix,
super.prefixStyle,
super.suffix,
super.suffixStyle,
super.borderSide,
super.foregroundGradient,
super.backgroundGradient,
super.shadows,
}){
assert(side>2);
}