handlePlayState method

void handlePlayState(
  1. AnimationPlayStates? playState
)

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;
  }
}