CircularCountDownTimer constructor

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

Implementation

const CircularCountDownTimer({
  required this.width,
  required this.height,
  required this.duration,
  required this.fillColor,
  required this.ringColor,
  this.timeFormatterFunction,
  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,
  super.key,
  this.isTimerTextShown = true,
  this.autoStart = true,
  this.textFormat,
  this.controller,
}) : assert(initialDuration <= duration);