shouldKeepGoing method

bool shouldKeepGoing(
  1. double speedMultiplier
)

Implementation

bool shouldKeepGoing(double speedMultiplier) {
  return animation.loop != Loop.oneShot ||
      (speedMultiplier * directedSpeed > 0 && _time < animation.endSeconds) ||
      (speedMultiplier * directedSpeed < 0 && _time > animation.startSeconds);
}