setLoop method

AnimationAction setLoop(
  1. int mode,
  2. num repetitions
)

Sets the loop mode and the number of repetitions. This method can be chained.

Implementation

AnimationAction setLoop(int mode, num repetitions) {
  loop = mode;
  this.repetitions = repetitions;

  return this;
}