resetAnimation method
void
resetAnimation()
Rewind the typewriter effect to start from the first character again.
Useful for reusing this component when changing lines so that the next line does not show immediately. Also resets the onComplete call state which will be called again when the line is finished.
Implementation
void resetAnimation() {
_lifeTime = 0;
_isOnCompleteExecuted = false;
}