fromAnimationAndTriggeredMove static method
AnimatedMoveId
fromAnimationAndTriggeredMove(
{ - required bool animationIsCompleted,
- required bool hasTriggeredMove,
})
Implementation
static AnimatedMoveId fromAnimationAndTriggeredMove({
required bool animationIsCompleted,
required bool hasTriggeredMove,
}) {
final AnimatedMoveId moveId;
if (animationIsCompleted) {
moveId = AnimatedMoveId.finished;
} else if (!hasTriggeredMove) {
moveId = AnimatedMoveId.started;
} else {
moveId = AnimatedMoveId.inProgress;
}
return moveId;
}