restart method

void restart()

Restarts the animation from the beginning.

Re-arms the completion latch so the next completion of this new revealing→complete cycle fires onCompleted again.

Implementation

void restart() {
  _progress = 0.0;
  _isCompleted = false;
  _isPaused = false;
  _error = null;
  _updateState(StreamingTextState.animating);
  _notifyProgress();
}