giphyStateReducer function

GiphyState giphyStateReducer(
  1. GiphyState state,
  2. dynamic event
)

Implementation

GiphyState giphyStateReducer(GiphyState state, dynamic event){
  if(event is GiphyEvent){
    return GiphyState(
      apiKey: state.apiKey,
      pageSize: state.pageSize,
      routeDuration: state.routeDuration,
      giphyClient: state.giphyClient,
      selectedAsset: selectedAssetReducer(state, event),
      connectivity: connectivityReducer(state, event),
      displayAssets: displayAssetsReducer(state, event),
    );
  }
  return state;
}