CircularCountDownTimer constructor
CircularCountDownTimer({
- required double width,
- required double height,
- required int duration,
- required Color fillColor,
- required Color ringColor,
- Color? backgroundColor,
- Gradient? fillGradient,
- Gradient? ringGradient,
- Gradient? backgroundGradient,
- int initialDuration = 0,
- bool isReverse = false,
- bool isReverseAnimation = false,
- VoidCallback? onComplete,
- VoidCallback? onStart,
- ValueChanged<
String> ? onChange, - double strokeWidth = 5.0,
- StrokeCap strokeCap = StrokeCap.butt,
- TextStyle? textStyle,
- Key? key,
- bool isTimerTextShown = true,
- bool autoStart = true,
- String? textFormat,
- 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);