ColorizeAnimatedTextKit constructor

ColorizeAnimatedTextKit({
  1. Key? key,
  2. required List<String> text,
  3. TextAlign textAlign = TextAlign.start,
  4. TextDirection textDirection = TextDirection.ltr,
  5. required TextStyle textStyle,
  6. required List<Color> colors,
  7. Duration speed = const Duration(milliseconds: 200),
  8. Duration pause = const Duration(milliseconds: 1000),
  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. int totalRepeatCount = 3,
  15. bool repeatForever = false,
  16. bool displayFullTextOnTap = false,
  17. bool stopPauseOnTap = false,
})

Implementation

ColorizeAnimatedTextKit({
  Key? key,
  required List<String> text,
  TextAlign textAlign = TextAlign.start,
  TextDirection textDirection = TextDirection.ltr,
  required TextStyle textStyle,
  required List<Color> colors,
  Duration speed = const Duration(milliseconds: 200),
  Duration pause = const Duration(milliseconds: 1000),
  VoidCallback? onTap,
  void Function(int, bool)? onNext,
  void Function(int, bool)? onNextBeforePause,
  VoidCallback? onFinished,
  bool isRepeatingAnimation = true,
  int totalRepeatCount = 3,
  bool repeatForever = false,
  bool displayFullTextOnTap = false,
  bool stopPauseOnTap = false,
}) : super(
        key: key,
        animatedTexts: _animatedTexts(
          text,
          textAlign,
          textStyle,
          speed,
          colors,
          textDirection,
        ),
        pause: pause,
        displayFullTextOnTap: displayFullTextOnTap,
        stopPauseOnTap: stopPauseOnTap,
        onTap: onTap,
        onNext: onNext,
        onNextBeforePause: onNextBeforePause,
        onFinished: onFinished,
        isRepeatingAnimation: isRepeatingAnimation,
        totalRepeatCount: totalRepeatCount,
        repeatForever: repeatForever,
      );