status property Null safety

  1. @override
AnimationStatus status

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.


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