CountDownProgressIndicator constructor

const CountDownProgressIndicator({
  1. Key? key,
  2. required int duration,
  3. int initialPosition = 0,
  4. required Color backgroundColor,
  5. required Color valueColor,
  6. CountDownController? controller,
  7. Function? onComplete,
  8. TextStyle? timeTextStyle,
  9. String timeFormatter(
    1. int seconds
    )?,
  10. TextStyle? labelTextStyle,
  11. double strokeWidth = 10,
  12. String? text,
  13. bool autostart = true,
})

Implementation

const CountDownProgressIndicator({
  super.key,
  required this.duration,
  this.initialPosition = 0,
  required this.backgroundColor,
  required this.valueColor,
  this.controller,
  this.onComplete,
  this.timeTextStyle,
  this.timeFormatter,
  this.labelTextStyle,
  this.strokeWidth = 10,
  this.text,
  this.autostart = true,
})  : assert(duration > 0),
      assert(initialPosition < duration);