GradientArcPainter constructor

const GradientArcPainter({
  1. required double progress,
  2. required Color startColor,
  3. required Color endColor,
  4. required double width,
})

Implementation

const GradientArcPainter({
  //variable to hold progress percentage
  required this.progress,
  required this.startColor,
  required this.endColor,
  required this.width,
})  : assert(progress != null),
      assert(startColor != null),
      assert(endColor != null),
      assert(width != null),
      super();