AnimatedTextKit constructor
const
AnimatedTextKit({
- Key? key,
- required List<
AnimatedText> animatedTexts, - Duration pause = const Duration(milliseconds: 1000),
- bool displayFullTextOnTap = false,
- bool stopPauseOnTap = false,
- VoidCallback? onTap,
- void onNext()?,
- void onNextBeforePause()?,
- VoidCallback? onFinished,
- bool isRepeatingAnimation = true,
- int totalRepeatCount = 3,
- bool repeatForever = false,
Implementation
const AnimatedTextKit({
Key? key,
required this.animatedTexts,
this.pause = const Duration(milliseconds: 1000),
this.displayFullTextOnTap = false,
this.stopPauseOnTap = false,
this.onTap,
this.onNext,
this.onNextBeforePause,
this.onFinished,
this.isRepeatingAnimation = true,
this.totalRepeatCount = 3,
this.repeatForever = false,
}) : assert(animatedTexts.length > 0),
assert(!isRepeatingAnimation || totalRepeatCount > 0 || repeatForever),
assert(null == onFinished || !repeatForever),
super(key: key);