Countdown constructor

Countdown({
  1. Key? key,
  2. required int seconds,
  3. required Widget build(
    1. BuildContext,
    2. double
    ),
  4. Duration interval = const Duration(seconds: 1),
  5. Function? onFinished,
  6. CountdownController? controller,
})

Simple countdown timer

Implementation

Countdown({
  Key? key,
  required this.seconds,
  required this.build,
  this.interval = const Duration(seconds: 1),
  this.onFinished,
  this.controller,
}) : super(key: key);