BounceAnimatedTextKit constructor

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

Implementation

BounceAnimatedTextKit({
  Key? key,
  required List<String> text,
  TextAlign textAlign = TextAlign.start,
  TextStyle? textStyle,
  double bounceHeight = 50.0,
  Duration duration = const Duration(milliseconds: 1500),
  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,
  Curve curve = Curves.elasticOut,
}) : super(
        key: key,
        animatedTexts: _animatedTexts(
          text,
          textAlign,
          textStyle,
          duration,
          bounceHeight,
          curve,
        ),
        pause: pause,
        displayFullTextOnTap: displayFullTextOnTap,
        stopPauseOnTap: stopPauseOnTap,
        onTap: onTap,
        onNext: onNext,
        onNextBeforePause: onNextBeforePause,
        onFinished: onFinished,
        isRepeatingAnimation: isRepeatingAnimation,
        totalRepeatCount: totalRepeatCount,
        repeatForever: repeatForever,
      );