AnimatedTextKit constructor

const AnimatedTextKit({
  1. Key? key,
  2. required List<AnimatedText> animatedTexts,
  3. Duration pause = const Duration(milliseconds: 1000),
  4. bool displayFullTextOnTap = false,
  5. bool stopPauseOnTap = false,
  6. VoidCallback? onTap,
  7. void onNext(
    1. int,
    2. bool
    )?,
  8. void onNextBeforePause(
    1. int,
    2. bool
    )?,
  9. VoidCallback? onFinished,
  10. bool isRepeatingAnimation = true,
  11. int totalRepeatCount = 3,
  12. 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);