ofTypes method

Observable<Action> ofTypes (List<String> actionTypes)

This function takes List actionTypes param and apply filter on actionTypes and return Observable

Implementation

Observable<Action> ofTypes(List<String> actionTypes) {
  return _dispatcher.streamController.where((action) =>
      actionTypes.indexWhere((type) => type == action.type) != -1);
}