MotionRepeat constructor
MotionRepeat({
- required MotionInterval motion,
- 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;
}