status property Null safety

AnimationStatus status
override

Gets the status of this animation based on the first and next status.

The default is that if the next animation is moving, use its status. Otherwise, default to first.

Implementation

@override
AnimationStatus get status {
  if (next.status == AnimationStatus.forward || next.status == AnimationStatus.reverse)
    return next.status;
  return first.status;
}