TypewriterAnimatedTextKit constructor

TypewriterAnimatedTextKit({
  1. Key? key,
  2. required List<String> text,
  3. TextAlign textAlign = TextAlign.start,
  4. required TextStyle textStyle,
  5. Duration speed = const Duration(milliseconds: 30),
  6. Duration pause = const Duration(milliseconds: 1000),
  7. bool displayFullTextOnTap = false,
  8. bool stopPauseOnTap = false,
  9. VoidCallback? onTap,
  10. void onNext(
    1. int,
    2. bool
    )?,
  11. void onNextBeforePause(
    1. int,
    2. bool
    )?,
  12. VoidCallback? onFinished,
  13. bool isRepeatingAnimation = true,
  14. bool repeatForever = true,
  15. int totalRepeatCount = 3,
  16. Curve curve = Curves.linear,
})

Implementation

TypewriterAnimatedTextKit({
  Key? key,
  required List<String> text,
  TextAlign textAlign = TextAlign.start,
  required TextStyle textStyle,
  Duration speed = const Duration(milliseconds: 30),
  Duration pause = const Duration(milliseconds: 1000),
  bool displayFullTextOnTap = false,
  bool stopPauseOnTap = false,
  VoidCallback? onTap,
  void Function(int, bool)? onNext,
  void Function(int, bool)? onNextBeforePause,
  VoidCallback? onFinished,
  bool isRepeatingAnimation = true,
  bool repeatForever = true,
  int totalRepeatCount = 3,
  Curve curve = Curves.linear,
}) : super(
        key: key,
        animatedTexts:
            _animatedTexts(text, textAlign, textStyle, speed, curve),
        pause: pause,
        displayFullTextOnTap: displayFullTextOnTap,
        stopPauseOnTap: stopPauseOnTap,
        onTap: onTap,
        onNext: onNext,
        onNextBeforePause: onNextBeforePause,
        onFinished: onFinished,
        isRepeatingAnimation: isRepeatingAnimation,
        repeatForever: repeatForever,
        totalRepeatCount: totalRepeatCount,
      );