nonEmptySubmobjects method

List<Mobject> nonEmptySubmobjects()

Implementation

List<Mobject> nonEmptySubmobjects() {
  return [
    for (var submob in submobjects)
      if (submob.submobjects.isNotEmpty || submob.points.isNotEmpty) submob
  ];
}