CountdownConfig constructor
const
CountdownConfig({
- required Duration duration,
- Duration interval = const Duration(seconds: 1),
- bool autoStart = true,
- bool showControls = false,
- bool showReset = false,
- bool showMilliseconds = false,
- Duration animationDuration = const Duration(milliseconds: 300),
- bool enableHapticFeedback = true,
- String customFormatter()?,
- VoidCallback? onFinish,
- VoidCallback? onPause,
- VoidCallback? onResume,
- VoidCallback? onReset,
- void onTick(
- Duration remaining
Implementation
const CountdownConfig({
required this.duration,
this.interval = const Duration(seconds: 1),
this.autoStart = true,
this.showControls = false,
this.showReset = false,
this.showMilliseconds = false,
this.animationDuration = const Duration(milliseconds: 300),
this.enableHapticFeedback = true,
this.customFormatter,
this.onFinish,
this.onPause,
this.onResume,
this.onReset,
this.onTick,
});