kAlwaysDismissedAnimation top-level constant Null safety

Animation<double> const kAlwaysDismissedAnimation

An animation that is always dismissed.

Using this constant involves less overhead than building an AnimationController with an initial value of 0.0. This is useful when an API expects an animation but you don't actually want to animate anything.


const Animation<double> kAlwaysDismissedAnimation = _AlwaysDismissedAnimation();