WOICountdowns constructor

const WOICountdowns({
  1. required double timeInSeconds,
  2. double timerSize = 200,
  3. double timerWidth = 15,
  4. Color timerBackgroundColor = Colors.lightBlue,
  5. Color timerFillColor = Colors.orange,
  6. double cooldownTimerSize = 200,
  7. Widget? initialCooldownTimerCenter = const Icon(Icons.play_arrow_outlined, size: 100),
  8. BoxDecoration cooldownTimerBoxDecoration = const BoxDecoration(color: Colors.blueGrey, borderRadius: BorderRadius.all(Radius.circular(200))),
  9. int? coolDownTimerValue,
  10. TextStyle? coolDownTimerTextStyle,
  11. Widget? pausedTimerCenterWidget = const Icon(Icons.pause, size: 100),
  12. Widget? timerCompletionCenterWidget = const Icon(Icons.celebration, size: 100),
  13. dynamic onChange(
    1. double timerValue
    )?,
  14. dynamic onStateChange(
    1. TimerState state
    )?,
  15. Key? key,
})

Implementation

const WOICountdowns({
  required this.timeInSeconds,
  this.timerSize = 200,
  this.timerWidth = 15,
  this.timerBackgroundColor = Colors.lightBlue,
  this.timerFillColor = Colors.orange,
  this.cooldownTimerSize = 200,
  this.initialCooldownTimerCenter = const Icon(
    Icons.play_arrow_outlined,
    size: 100,
  ),
  this.cooldownTimerBoxDecoration = const BoxDecoration(
    color: Colors.blueGrey,
    borderRadius: BorderRadius.all(
      Radius.circular(200),
    ),
  ),
  this.coolDownTimerValue,
  this.coolDownTimerTextStyle,
  this.pausedTimerCenterWidget = const Icon(
    Icons.pause,
    size: 100,
  ),
  this.timerCompletionCenterWidget = const Icon(
    Icons.celebration,
    size: 100,
  ),
  this.onChange,
  this.onStateChange,
  super.key,
});