setPreviousPollsReducer<T> function
Implementation
List<T>? setPreviousPollsReducer<T>(SwipeFeedState<T> state, dynamic event){
if(event is _SetPreviousPollsEvent<T>){
return event.items;
}
return state.previousPolls;
}
List<T>? setPreviousPollsReducer<T>(SwipeFeedState<T> state, dynamic event){
if(event is _SetPreviousPollsEvent<T>){
return event.items;
}
return state.previousPolls;
}