EfficientCircularCountdownTimer constructor
const
EfficientCircularCountdownTimer({
- Key? key,
- required int duration,
- int initialDuration = 0,
- bool isReverse = false,
- bool autoStart = true,
- double width = 100,
- double height = 100,
- Color? fillColor,
- Color? ringColor,
- Color? backgroundColor,
- Gradient? fillGradient,
- Gradient? ringGradient,
- Gradient? backgroundGradient,
- double strokeWidth = 8.0,
- StrokeCap strokeCap = StrokeCap.round,
- bool isReverseAnimation = false,
- bool isTimerTextShown = true,
- TextStyle? textStyle,
- TextAlign? textAlign,
- String timeFormatter(
- int seconds
- CountdownController? controller,
- VoidCallback? onStart,
- VoidCallback? onComplete,
- 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,
});