BackgroundTimer constructor

const BackgroundTimer({
  1. Key? key,
  2. required int seconds,
  3. TimerController? controller,
  4. TimerStorageManager? storageManger,
})

Creates a new BackgroundTimer instance.

Requires a controller to manage state and the initial amount of seconds for the countdown. storageManger for storing the timer values

Implementation

const BackgroundTimer({
  super.key,
  required this.seconds,
  this.controller,
  this.storageManger,
});