AppCountdownTimer constructor

const AppCountdownTimer({
  1. Key? key,
  2. int durationInSeconds = 600,
  3. TextStyle textStyle = const TextStyle(fontSize: 12.0, fontWeight: FontWeight.bold, color: AppColors.primaryColor),
  4. VoidCallback? onCountdownFinished,
  5. ValueChanged<int>? onRemainingTimeChanged,
})

Implementation

const AppCountdownTimer({
  Key? key,
  this.durationInSeconds = 600, // Default to 10 minutes (600 seconds)
  this.textStyle = const TextStyle(
      fontSize: 12.0,
      fontWeight: FontWeight.bold,
      color: AppColors.primaryColor),
  this.onCountdownFinished, // Callback for when countdown finishes
  this.onRemainingTimeChanged, // Callback for remaining time
}) : super(key: key);