SequenceEffect constructor

SequenceEffect(
  1. List<Effect> effects, {
  2. bool alternate = false,
  3. bool infinite = false,
  4. int repeatCount = 1,
  5. void onComplete()?,
  6. ComponentKey? key,
})

Implementation

SequenceEffect(
  List<Effect> effects, {
  bool alternate = false,
  bool infinite = false,
  int repeatCount = 1,
  super.onComplete,
  super.key,
})  : assert(effects.isNotEmpty, 'The list of effects cannot be empty'),
      assert(
        !(infinite && repeatCount != 1),
        'Parameters infinite and repeatCount cannot be specified '
        'simultaneously',
      ),
      super(
        _createController(
          effects: effects,
          alternate: alternate,
          infinite: infinite,
          repeatCount: repeatCount,
        ),
      ) {
  addAll(effects);
}