LinearPercentIndicator constructor

LinearPercentIndicator({Key key, Color fillColor: Colors.transparent, double percent: 0.0, double lineHeight: 5.0, @required double width, Color backgroundColor: const Color(0xFFB8C7CB), Color progressColor: Colors.red, bool animation: false, int animationDuration: 500, Widget leading, Widget trailing, Widget center, LinearStrokeCap linearStrokeCap, EdgeInsets padding: const EdgeInsets.symmetric(horizontal: 10.0), MainAxisAlignment alignment: MainAxisAlignment.start })

Implementation

LinearPercentIndicator(
    {Key key,
    this.fillColor = Colors.transparent,
    this.percent = 0.0,
    this.lineHeight = 5.0,
    @required this.width,
    this.backgroundColor = const Color(0xFFB8C7CB),
    this.progressColor = Colors.red,
    this.animation = false,
    this.animationDuration = 500,
    this.leading,
    this.trailing,
    this.center,
    this.linearStrokeCap,
    this.padding = const EdgeInsets.symmetric(horizontal: 10.0),
    this.alignment = MainAxisAlignment.start})
    : super(key: key) {
  if (percent < 0.0 || percent > 1.0) {
    throw new Exception("Percent value must be a double between 0.0 and 1.0");
  }
}