RepeatTimeline(this.child, this.times) : assert(times > 0, 'Times must be positive.'), assert(!child.isInfinite, 'Cannot repeat an infinite timeline.'), _remaining = times;