stopEffect function

void stopEffect(
  1. EffectNode e
)

Stops an effect after disposing its nested effects and scopes.

Implementation

void stopEffect(EffectNode e) {
  stopScope(e);
  if (e.cleanup != null) {
    runCleanup(e);
  }
}