selectedAssetReducer function

String? selectedAssetReducer(
  1. GiphyState state,
  2. dynamic event
)

Implementation

String? selectedAssetReducer(GiphyState state, dynamic event){
  if(event is SetSelectedAsset){
    return event.asset;
  }
  return state.selectedAsset;
}