setEffectiveTimeScale method
Sets the timeScale and stops any scheduled warping. This
method can be chained.
If ppaused is false, the effective time scale (an internal
property) will also be set to this value; otherwise the effective time
scale (directly affecting the animation at this moment) will be set to
0.
Note: .paused will not be switched to true automatically, if
.timeScale is set to 0 by this method.
Implementation
AnimationAction setEffectiveTimeScale(num timeScale) {
this.timeScale = timeScale;
_effectiveTimeScale = paused ? 0 : timeScale;
return stopWarping();
}