setSwipeFeedCardStateReducer function

FeedCardState setSwipeFeedCardStateReducer(
  1. SwipeFeedCardState state,
  2. dynamic event
)

Implementation

FeedCardState setSwipeFeedCardStateReducer(SwipeFeedCardState state, dynamic event){
  if(event is SetSwipeFeedCardState){
    return event.state;
  }
  else{
    return state.state;
  }
}