giphyStateReducer function
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;
}