AppCountdownTimer constructor
const
AppCountdownTimer({
- Key? key,
- int durationInSeconds = 600,
- TextStyle textStyle = const TextStyle(fontSize: 12.0, fontWeight: FontWeight.bold, color: AppColors.primaryColor),
- VoidCallback? onCountdownFinished,
- 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);