EfficientCircularCountdownTimer constructor

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

Implementation

const EfficientCircularCountdownTimer({
  super.key,
  required this.duration,
  this.initialDuration = 0,
  this.isReverse = false,
  this.autoStart = true,
  this.width = 100,
  this.height = 100,
  this.fillColor,
  this.ringColor,
  this.backgroundColor,
  this.fillGradient,
  this.ringGradient,
  this.backgroundGradient,
  this.strokeWidth = 8.0,
  this.strokeCap = StrokeCap.round,
  this.isReverseAnimation = false,
  this.isTimerTextShown = true,
  this.textStyle,
  this.textAlign,
  this.timeFormatter,
  this.controller,
  this.onStart,
  this.onComplete,
  this.onChange,
});