AppState appReducer(AppState state, dynamic action) { if (action is UpdateStepAction) { return state.copyWith(step: action.step); } return state; }