reset method

  1. @mustCallSuper
void reset()

Restore the effect to its original state as it was when the effect was just created.

A common use case for this method is to have an effect which is permanently attached to its target (i.e. with removeOnFinish == false), and then periodically resetting this effect each time you need to apply it to the target.

Implementation

@mustCallSuper
void reset() {
  controller.setToStart();
  _paused = false;
  _started = false;
  _finished = false;
  _lastProgress = 0;
}