CountdownConfig constructor

const CountdownConfig({
  1. required Duration duration,
  2. Duration interval = const Duration(seconds: 1),
  3. bool autoStart = true,
  4. bool showControls = false,
  5. bool showReset = false,
  6. bool showMilliseconds = false,
  7. Duration animationDuration = const Duration(milliseconds: 300),
  8. bool enableHapticFeedback = true,
  9. String customFormatter(
    1. Duration
    )?,
  10. VoidCallback? onFinish,
  11. VoidCallback? onPause,
  12. VoidCallback? onResume,
  13. VoidCallback? onReset,
  14. void onTick(
    1. 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,
});