stopScope function

void stopScope(
  1. ReactiveNode node
)

Stops a scope-like node and disposes all dependencies in reverse order.

Implementation

void stopScope(ReactiveNode node) {
  node.flags = ReactiveFlags.none;
  disposeAllDepsInReverse(node);
  final subs = node.subs;
  if (subs != null) {
    unlink(subs, subs.sub);
  }
}