AnimationGroup constructor
AnimationGroup(})
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();
}