cleanupListeners method

void cleanupListeners()

Removes disposed listeners from all notifiers. This happens regularly, but you can call it manually if you want to to visualize the current state.

Implementation

void cleanupListeners() {
  for (final notifier in _state.values) {
    notifier.cleanupListeners();
  }
}