dispose method

  1. @mustCallSuper
void dispose()

Disposes the notifier and cleans up native ChangeNotifier listeners.

Implementation

@mustCallSuper
void dispose() {
  assert(_debugAssertNotDisposed());
  _updaters.clear();
  _notifier?.dispose();
  _notifier = null;
}