setSimulationDelegateReducer function

SimulationDelegate? setSimulationDelegateReducer(
  1. SwipeFeedCardState state,
  2. dynamic event
)

Implementation

SimulationDelegate? setSimulationDelegateReducer(SwipeFeedCardState state, dynamic event){
  if(event is SetSimulationDelegate){
    return event.delegate;
  }
  return state.simulationDelegate;
}