AnimationGroup constructor

AnimationGroup(
  1. List<Animation> animations, {
  2. double runTime = 0,
  3. RateFunc rateFunc = linear,
  4. double lagRatio = DEFAULT_ANIMATION_LAG_RATIO,
  5. Group? group,
})

Implementation

AnimationGroup(
  this.animations, {
  double runTime = 0, // Initialized in initRunTime
  RateFunc rateFunc = linear,
  double lagRatio = DEFAULT_ANIMATION_LAG_RATIO,
  Group? group,
}) : super(group ?? Group(),
          rateFunc: rateFunc, runTime: runTime, lagRatio: lagRatio) {
  if (group == null) {
    mobject.add(
        withoutRedundancies([for (var anim in animations) anim.mobject]));
  }

  initRunTime();
}