onDispose method

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

Disposes the signal and cleans up resources.

The signal is no longer reactive and will not participate in updates or propagation.

Example:

counter.dispose();

Implementation

@override
@mustCallSuper
@protected
void onDispose() {
  disposeNode(this);
}