setConnectivityReducer function

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

Implementation

bool setConnectivityReducer(SwipeFeedState state, dynamic event){
  if(event is SetConnectivityEvent){
    return event.connectivity;
  }
  return state.connectivity;
}