createGroup<MobjectType extends Mobject> method

  1. @override
Mobject createGroup<MobjectType extends Mobject>(
  1. List<MobjectType> mobs
)
override

Implementation

@override
Mobject createGroup<MobjectType extends Mobject>(List<MobjectType> mobs) {
  if (mobs.every((element) => element is VMobject)) {
    return VGroup(mobs.cast<VMobject>());
  } else {
    return super.createGroup(mobs);
  }
}