dispose method

void dispose()

Disposes the observer by unsubscribing from all tracked signals.

After calling dispose, the observer will no longer be notified of any signal changes.

Implementation

void dispose() {
  for (final s in _signals) {
    s.unsubscribe(onUpdate);
  }
}