isAnimating property

bool get isAnimating

Whether the animation is running in either direction.

Implementation

bool get isAnimating => switch (this) {
  forward   || reverse   => true,
  completed || dismissed => false,
};