CountDownTimer constructor

const CountDownTimer({
  1. Key? key,
  2. required Duration duration,
  3. VoidCallback? onFinished,
  4. void onTick(
    1. Duration remaining
    )?,
  5. TextStyle? style,
  6. bool autoStart = true,
  7. CountDownFormat format = CountDownFormat.hms,
})

Implementation

const CountDownTimer({
  super.key,
  required this.duration,
  this.onFinished,
  this.onTick,
  this.style,
  this.autoStart = true,
  this.format = CountDownFormat.hms,
});