BarProgress constructor

BarProgress({
  1. required double percentage,
  2. Color color = Colors.orange,
  3. Color backColor = Colors.transparent,
  4. bool showPercentage = true,
  5. Gradient? gradient,
  6. TextStyle? textStyle,
  7. double stroke = 20,
  8. bool round = true,
  9. EdgeInsets? margin,
})

Implementation

BarProgress(
    {required this.percentage,
    this.color = Colors.orange,
    this.backColor = Colors.transparent,
    this.showPercentage = true,
    this.gradient,
    TextStyle? textStyle,
    this.stroke = 20,
    this.round = true,
    this.margin})
    : this.textStyle = textStyle ??
          TextStyle(
            color: Colors.black,
          );