PolygonProgress constructor

PolygonProgress({
  1. double? width,
  2. int side = 3,
  3. Color? progressBackground,
  4. Gradient? progressBackgroundGradient,
  5. double size = 5,
  6. double? borderRadius,
  7. bool reverse = false,
  8. StrokeCap strokeCap = StrokeCap.round,
  9. String? indeterminateText,
  10. double? indicatorRatio,
  11. double progress = 0.0,
  12. int progressReserve = 1,
  13. ProgressType progressType = ProgressType.indeterminate,
  14. Color foreground = Colors.orange,
  15. Color background = Colors.blueAccent,
  16. bool isProgressOpacityAnim = true,
  17. TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.white),
  18. String? prefix,
  19. TextStyle? prefixStyle,
  20. String? suffix,
  21. TextStyle? suffixStyle,
  22. BorderSide? borderSide,
  23. Gradient? foregroundGradient,
  24. Gradient? backgroundGradient,
  25. 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);
}