AnimateCountdownText constructor

AnimateCountdownText({
  1. Key? key,
  2. required DateTime dateTime,
  3. required FormatDuration format,
  4. AnimationType animationType = AnimationType.evaporation,
  5. TextStyle characterTextStyle = const TextStyle(),
  6. TextStyle suffixTextStyle = const TextStyle(),
  7. Duration interval = const Duration(seconds: 1),
  8. Duration? expireDuration = Duration.zero,
  9. Duration? reverseExpireDuration,
  10. VoidCallback? onDone,
  11. EdgeInsets characterPadding = const EdgeInsets.all(1),
  12. AnimationBuilder? animationBuilder,
  13. bool reverse = false,
})

Implementation

AnimateCountdownText(
    {Key? key,
    required this.dateTime,
    required this.format,
    this.animationType = AnimationType.evaporation,
    this.characterTextStyle = const TextStyle(),
    this.suffixTextStyle = const TextStyle(),
    this.interval = const Duration(seconds: 1),
    this.expireDuration = Duration.zero,
    this.reverseExpireDuration,
    this.onDone,
    this.characterPadding = const EdgeInsets.all(1),
    this.animationBuilder,
    this.reverse = false})
    : assert(!interval.isNegative && interval != Duration.zero, "Interval must positive"),
      super(key: key);