setLoadingReducer function

bool setLoadingReducer(
  1. SwipeFeedState state,
  2. dynamic event
)

Implementation

bool setLoadingReducer(SwipeFeedState state, dynamic event){
  if(event is _SetLoadingEvent){
    return event.loading;
  }
  return state.loading;
}