MotionRepeat constructor

MotionRepeat({
  1. required MotionInterval motion,
  2. required int numRepeats,
})

Creates a new motion that is repeats the passed in motion a fixed number of times.

var myLoop = new MotionRepeat(myMotion);

Implementation

MotionRepeat({required this.motion, required this.numRepeats}) {
  _duration = motion.duration * numRepeats;
}