recede method

  1. @internal
double recede(
  1. double dt
)

Used for SequenceEffect. This is similar to update(), but the effect is moved back in time. The callbacks onStart/onFinish will not be called. This method returns the "leftover time" similar to EffectController.recede.

Implementation

@internal
double recede(double dt) {
  if (_finished && dt > 0) {
    _finished = false;
  }
  final remainingDt = controller.recede(dt);
  if (_started) {
    final progress = controller.progress;
    apply(progress);
    _lastProgress = progress;
  }
  return remainingDt;
}