handlePlayState method
Implementation
void handlePlayState(AnimationPlayStates? playState) {
switch (playState) {
case AnimationPlayStates.None:
break;
case AnimationPlayStates.Forward:
forward();
break;
case AnimationPlayStates.Reverse:
reverse();
break;
case AnimationPlayStates.Loop:
loop();
break;
case AnimationPlayStates.PingPong:
loop(pingPong: true);
break;
default:
break;
}
}