どうも、ちょげ(@chogetarou)です。
AnimationControllerからアニメーションの状態を取得する方法を紹介します。
方法

アニメーションの状態を取得するには、「status」プロパティを使います。
AnimationControllerの「status」にアクセスすることで、アニメーションの状態を知ることが出来ます。
AnimationController _controller = AnimationController(
duration: Duration(seconds: 1),
vsync: this,
);
・・・・
_controller.status;
まとめ
アニメーションの状態を取得するには、「AnimationController」の「status」プロパティを使います。
コメント