TimerCountdown constructor

TimerCountdown({
  1. required DateTime endTime,
  2. CountDownTimerFormat format = CountDownTimerFormat.daysHoursMinutesSeconds,
  3. bool enableDescriptions = true,
  4. VoidCallback? onEnd,
  5. TextStyle? timeTextStyle,
  6. OnTickCallBack? onTick,
  7. TextStyle? colonsTextStyle,
  8. TextStyle? descriptionTextStyle,
  9. String daysDescription = "Days",
  10. String hoursDescription = "Hours",
  11. String minutesDescription = "Minutes",
  12. String secondsDescription = "Seconds",
  13. 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,
});