Listening constructor
Listening(
- Stream<
NewDataForListener> _parentStream, - StreamController<
NewDataForListener> childStreamController, - String listenId,
- void _notifyParentStreamThatChildStreamIsNotListeningAnymore(),
Implementation
Listening(this._parentStream, this.childStreamController, this.listenId, this._notifyParentStreamThatChildStreamIsNotListeningAnymore){
stream = childStreamController.stream;
_subscription = _parentStream.listen(childStreamController.add);
childStreamController.onCancel = close;
}