registerDisposeStream<T> method
Registers a stream for automatic cleanup when this item is disposed.
In this case, cleanup refers to calling StreamSubscription.cancel()
If this ChangeNotifier has already been disposed, StreamSubscription.cancel() will be called immediately before returning from this method
Implementation
void registerDisposeStream<T>(StreamSubscription<T> subscription) {
registerDispose(_StreamDisposer(subscription));
}