runEffectScope method

void runEffectScope(
  1. EffectScope scope,
  2. void fn()
)

Implementation

void runEffectScope(EffectScope scope, void Function() fn) {
  final prevSub = activeScope;
  activeScope = scope;
  startTracking(scope);
  try {
    fn();
  } finally {
    activeScope = prevSub;
    endTracking(scope);
  }
}