CircularPercentIndicator constructor

CircularPercentIndicator({Key key, double percent: 0.0, double lineWidth: 5.0, @required double radius, Color fillColor: Colors.transparent, Color backgroundColor: const Color(0xFFB8C7CB), Color progressColor: Colors.red, bool animation: false, int animationDuration: 500, Widget header, Widget footer, Widget center, CircularStrokeCap circularStrokeCap })

Implementation

CircularPercentIndicator(
    {Key key,
    this.percent = 0.0,
    this.lineWidth = 5.0,
    @required this.radius,
    this.fillColor = Colors.transparent,
    this.backgroundColor = const Color(0xFFB8C7CB),
    this.progressColor = Colors.red,
    this.animation = false,
    this.animationDuration = 500,
    this.header,
    this.footer,
    this.center,
    this.circularStrokeCap})
    : super(key: key) {
  if (percent < 0.0 || percent > 1.0) {
    throw Exception("Percent value must be a double between 0.0 and 1.0");
  }
}