remove method

void remove(
  1. List<Mobject> mobjects
)

Implementation

void remove(List<Mobject> mobjects) {
  submobjects = [
    for (var mob in submobjects)
      if (!mobjects.contains(mob)) mob
  ];
}