dispose method

void dispose()

Releases subscriptions held by this observer.

Implementation

void dispose() {
  _removeMutation?.call();
  _removeMutation = null;
  _listeners.clear();
}