ofType method
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);
}