addInputObservable method

void addInputObservable (
  1. String key,
  2. Observable<Action> observable

Start dispatching all Actions from observable.

If an Observable was already added with key it will be replaced with observable.

key can be passed to removeInputObservable to stop dispatching the Actions from observable. This method will throw a StateError if this is closed. A Dispatcher is closed after its dispose method is called. To see if a Dispatcher is closed use getter closed.


void addInputObservable(String key, Observable<Action> observable);