addToBack method

void addToBack(
  1. List<Mobject> mobjects
)

Implementation

void addToBack(List<Mobject> mobjects) {
  if (mobjects.contains(this)) {
    throw 'Mobject can\'t contain itself';
  }
  submobjects = [
    for (var mob in submobjects)
      if (!mobjects.contains(mob)) mob,
    ...mobjects
  ];
}