ofType method

Observable<Action> ofType (String actionType)

This function takes String actionType param and apply filter on actionType and return Observable

Implementation

Observable<Action> ofType(String actionType) {
  return _dispatcher.streamController
      .where((action) => action.type == actionType);
}