RepeatedEffectController constructor

RepeatedEffectController(
  1. EffectController child,
  2. int repeatCount
)

Implementation

RepeatedEffectController(EffectController child, this.repeatCount)
    : assert(repeatCount > 0, 'repeatCount must be positive'),
      assert(!child.isInfinite, 'child cannot be infinite'),
      _child = child,
      _remainingCount = repeatCount,
      super.empty();