CircularCountDownTimer constructor

CircularCountDownTimer({
  1. required double width,
  2. required double height,
  3. required int duration,
  4. required Color fillColor,
  5. required Color ringColor,
  6. Color? backgroundColor,
  7. Gradient? fillGradient,
  8. Gradient? ringGradient,
  9. Gradient? backgroundGradient,
  10. int initialDuration = 0,
  11. bool isReverse = false,
  12. bool isReverseAnimation = false,
  13. VoidCallback? onComplete,
  14. VoidCallback? onStart,
  15. ValueChanged<String>? onChange,
  16. double strokeWidth = 5.0,
  17. StrokeCap strokeCap = StrokeCap.butt,
  18. TextStyle? textStyle,
  19. Key? key,
  20. bool isTimerTextShown = true,
  21. bool autoStart = true,
  22. String? textFormat,
  23. CountDownController? controller,
})

Implementation

CircularCountDownTimer({
  required this.width,
  required this.height,
  required this.duration,
  required this.fillColor,
  required this.ringColor,
  this.backgroundColor,
  this.fillGradient,
  this.ringGradient,
  this.backgroundGradient,
  this.initialDuration = 0,
  this.isReverse = false,
  this.isReverseAnimation = false,
  this.onComplete,
  this.onStart,
  this.onChange,
  this.strokeWidth = 5.0,
  this.strokeCap = StrokeCap.butt,
  this.textStyle,
  this.key,
  this.isTimerTextShown = true,
  this.autoStart = true,
  this.textFormat,
  this.controller,
})  : assert(initialDuration <= duration),
      super(key: key);