connectivityReducer function

bool connectivityReducer(
  1. GiphyState state,
  2. dynamic event
)

Implementation

bool connectivityReducer(GiphyState state, dynamic event){
  if(event is ChangeConnectivityStatus){
    return event.connectivity;
  }
  return state.connectivity;
}