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