TimerCountdown constructor
TimerCountdown({
- required DateTime endTime,
- CountDownTimerFormat format = CountDownTimerFormat.daysHoursMinutesSeconds,
- bool enableDescriptions = true,
- VoidCallback? onEnd,
- TextStyle? timeTextStyle,
- OnTickCallBack? onTick,
- TextStyle? colonsTextStyle,
- TextStyle? descriptionTextStyle,
- String daysDescription = "Days",
- String hoursDescription = "Hours",
- String minutesDescription = "Minutes",
- String secondsDescription = "Seconds",
- double spacerWidth = 10,
Implementation
TimerCountdown({
required this.endTime,
this.format = CountDownTimerFormat.daysHoursMinutesSeconds,
this.enableDescriptions = true,
this.onEnd,
this.timeTextStyle,
this.onTick,
this.colonsTextStyle,
this.descriptionTextStyle,
this.daysDescription = "Days",
this.hoursDescription = "Hours",
this.minutesDescription = "Minutes",
this.secondsDescription = "Seconds",
this.spacerWidth = 10,
});