getMovingMobjects method

List<Mobject> getMovingMobjects(
  1. List<Animation> animations
)

Implementation

List<Mobject> getMovingMobjects(List<Animation> animations) {
  var animationMobjects = animations.map((anim) => anim.mobject).toList();
  var mobjects = getMobjectsFamilies();

  for (var iMob in enumerate(mobjects)) {
    var mob = iMob.item2;
    var i = iMob.item1;

    if (animationMobjects.contains(mob) ||
        mob.getFamilyUpdaters().isNotEmpty) {
      return mobjects.skip(i).toList();
    }
  }

  return [];
}