partialAccountKitReducer function

AccountKitState partialAccountKitReducer(
  1. AccountKitState state,
  2. dynamic action
)

Implementation

AccountKitState partialAccountKitReducer(AccountKitState state, action) {
  return state.rebuild((b) => b
    ..appState.replace(appReducer(state.appState, action))
    ..groupState.replace(groupReducer(state.groupState, action))
    ..userState.replace(userReducer(state.userState, action))
    ..accessTokenState
        .replace(accessTokenReducer(state.accessTokenState, action))
    ..organizationState
        .replace(organizationReducer(state.organizationState, action)));
}