isForwardOrCompleted property
Whether the current aim of the animation is toward completion.
Specifically, returns true
for AnimationStatus.forward or
AnimationStatus.completed, and false
for
AnimationStatus.reverse or AnimationStatus.dismissed.
Implementation
bool get isForwardOrCompleted => switch (this) {
forward || completed => true,
reverse || dismissed => false,
};