RepeatTimeline constructor

RepeatTimeline(
  1. Timeline child,
  2. int times
)

Implementation

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