AnimateCountdownText constructor
AnimateCountdownText({
- Key? key,
- required DateTime dateTime,
- required FormatDuration format,
- AnimationType animationType = AnimationType.evaporation,
- TextStyle characterTextStyle = const TextStyle(),
- TextStyle suffixTextStyle = const TextStyle(),
- Duration interval = const Duration(seconds: 1),
- Duration? expireDuration = Duration.zero,
- Duration? reverseExpireDuration,
- VoidCallback? onDone,
- EdgeInsets characterPadding = const EdgeInsets.all(1),
- AnimationBuilder? animationBuilder,
- 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);