restructureMobjects method

void restructureMobjects({
  1. List<Mobject> toRemove = const [],
  2. bool extractFamilies = true,
})

Implementation

void restructureMobjects(
    {List<Mobject> toRemove = const [], bool extractFamilies = true}) {
  var toRemove_ = [
    ...toRemove,
    if (extractFamilies) ...camera.extractMobjectFamilyMembers(toRemove)
  ];

  mobjects = getRestructuredMobjectList(mobjects, toRemove_);
}