addEffect method
This method is usefull to add a single effect passing a callback ( Actions action$, Store store$)=>Stream and effectKey on demand.
Example
store.addEffect((action$, store$)=>action$
.ofType(ActionTypes.AsyncInc)
.debounceTime(Duration(milliseconds: 1000))
.mapTo(Action(type: ActionTypes.Inc)), 'any-effectKey');
Implementation
Store addEffect(EffectCallback callback, {@required String effectKey}) {
removeEffectsByKey(effectKey);
_subs[effectKey] = callback(_actions, this).listen(_dispatcher.dispatch);
return this;
}