dispose method

  1. @override
void dispose()
override

Cancels any active listeners and closes the stream.

Implementation

@override
void dispose() {
  for (var subscription in _changeSubscriptions) {
    subscription.cancel();
  }
  _changeSubscriptions.clear();
  _changeNotifier.close();
  super.dispose();
}