onDispose method

  1. @override
  2. @mustCallSuper
  3. @protected
void onDispose()

Disposes the computed value and cleans up resources.

Removes the computed value from the reactive system and clears stored values.

Implementation

@override
@mustCallSuper
@protected
void onDispose() {
  globalReactiveSystem.nodeDispose(this);
  pendingValue = null;
}