setItemsReducer<T> function

List<Tuple2<T?, Store<SwipeFeedCardState>>> setItemsReducer<T>(
  1. SwipeFeedState<T> state,
  2. dynamic event
)

Implementation

List<Tuple2<T?, Store<SwipeFeedCardState>>> setItemsReducer<T>(SwipeFeedState<T> state, dynamic event){
  if(event is SetItemsEvent<T>){
    return event.items;
  }
  return state.items;
}