recede method

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

Similar to advance(), but makes the effect controller move back in time.

If the supplied amount of time dt would push the effect past its starting point, then the effect stops at the start and the "leftover" portion of dt is returned.

Implementation

@override
double recede(double dt) {
  final t = child.recede(dt);
  if (t > 0) {
    _initialized = false;
  }
  return t;
}