setItemsReducer<T> function
List<Tuple2<T?, Store<SwipeFeedCardState> > >
setItemsReducer<T>(
- SwipeFeedState<
T> state, - 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;
}