cleanUpFromScene method

  1. @override
void cleanUpFromScene(
  1. Scene scene
)
override

Implementation

@override
void cleanUpFromScene(Scene scene) {
  super.cleanUpFromScene(scene);
  if (replaceMobjectWithTarget) {
    scene
      ..remove([mobject])
      ..add([targetMobject]);
  }
}