AnimatedTextKit class

Base class for Animated Text widgets.

Inheritance

Constructors

AnimatedTextKit({Key? key, required List<AnimatedText> animatedTexts, Duration pause = const Duration(milliseconds: 1000), bool displayFullTextOnTap = false, bool stopPauseOnTap = false, VoidCallback? onTap, void onNext(int, bool)?, void onNextBeforePause(int, bool)?, VoidCallback? onFinished, bool isRepeatingAnimation = true, int totalRepeatCount = 3, bool repeatForever = false})
const

Properties

animatedTexts List<AnimatedText>
List of AnimatedText to display subsequently in the animation.
final
displayFullTextOnTap bool
Should the animation ends up early and display full text if you tap on it?
final
hashCode int
The hash code for this object.
no setterinherited
isRepeatingAnimation bool
Set if the animation should not repeat by changing the value of it to false.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onFinished VoidCallback?
Adds the onFinished VoidCallback to the animated widget.
final
onNext → void Function(int, bool)?
Adds the onNext callback to the animated widget.
final
onNextBeforePause → void Function(int, bool)?
Adds the onNextBeforePause callback to the animated widget.
final
onTap VoidCallback?
Adds the onTap VoidCallback to the animated widget.
final
pause Duration
Define the Duration of the pause between texts
final
repeatForever bool
Sets if the animation should repeat forever. isRepeatingAnimation also needs to be set to true if you want to repeat forever.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopPauseOnTap bool
If on pause, should a tap remove the remaining pause time ?
final
totalRepeatCount int
Sets the number of times animation should repeat
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _AnimatedTextKitState
Creates the mutable state for this widget. See StatefulWidget.createState.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited