RotateAnimatedTextKit constructor

RotateAnimatedTextKit({
  1. Key? key,
  2. required List<String> text,
  3. TextAlign textAlign = TextAlign.start,
  4. TextStyle? textStyle,
  5. double? transitionHeight,
  6. AlignmentGeometry alignment = Alignment.center,
  7. TextDirection textDirection = TextDirection.ltr,
  8. Duration duration = const Duration(milliseconds: 2000),
  9. Duration pause = const Duration(milliseconds: 500),
  10. VoidCallback? onTap,
  11. void onNext(
    1. int,
    2. bool
    )?,
  12. void onNextBeforePause(
    1. int,
    2. bool
    )?,
  13. VoidCallback? onFinished,
  14. bool isRepeatingAnimation = true,
  15. int totalRepeatCount = 3,
  16. bool repeatForever = false,
  17. bool displayFullTextOnTap = false,
  18. bool stopPauseOnTap = false,
})

Implementation

RotateAnimatedTextKit({
  Key? key,
  required List<String> text,
  TextAlign textAlign = TextAlign.start,
  TextStyle? textStyle,
  double? transitionHeight,
  AlignmentGeometry alignment = Alignment.center,
  TextDirection textDirection = TextDirection.ltr,
  Duration duration = const Duration(milliseconds: 2000),
  Duration pause = const Duration(milliseconds: 500),
  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,
          duration,
          transitionHeight,
          alignment,
          textDirection,
        ),
        pause: pause,
        displayFullTextOnTap: displayFullTextOnTap,
        stopPauseOnTap: stopPauseOnTap,
        onTap: onTap,
        onNext: onNext,
        onNextBeforePause: onNextBeforePause,
        onFinished: onFinished,
        isRepeatingAnimation: isRepeatingAnimation,
        totalRepeatCount: totalRepeatCount,
        repeatForever: repeatForever,
      );