halt method

AnimationAction halt(
  1. num duration
)

Decelerates this animation's speed to 0 by decreasing timeScale gradually (starting from its current value), within the passed time interval.

This method can be chained.

Implementation

AnimationAction halt(num duration) {
  return warp(_effectiveTimeScale, 0, duration);
}