playState property
AnimationPlayState
get
playState
Implementation
AnimationPlayState get playState {
if (_isIdle) {
// The current time of the animation is unresolved and there are no pending tasks.
return AnimationPlayState.idle;
}
if (_isPaused) {
// The animation was suspended and the Animation.currentTime property is not updating.
return AnimationPlayState.paused;
}
if (_isFinished) {
// The animation has reached one of its boundaries and the Animation.currentTime property is not updating.
return AnimationPlayState.finished;
}
return AnimationPlayState.running;
}