addEventSink<T> method

EventSink<T> addEventSink<T>(
  1. EventSink<T> disposable
)

Registers disposable.

Implementation

EventSink<T> addEventSink<T>(EventSink<T> disposable) {
  _disposeSinks.add(disposable as EventSink<Object>);
  _checkIfAlreadyDisposed();
  return disposable;
}