merge method

AuthCallbacks merge(
  1. AuthCallbacks other
)

Merge with another AuthCallbacks object

Implementation

AuthCallbacks merge(AuthCallbacks other) {
  return AuthCallbacks(
    onLogin: other.onLogin ?? onLogin,
    onLogout: other.onLogout ?? onLogout,
    onRegister: other.onRegister ?? onRegister,
    onUserUpdate: other.onUserUpdate ?? onUserUpdate,
    onTokenChange: other.onTokenChange ?? onTokenChange,
    onAuthStateChange: other.onAuthStateChange ?? onAuthStateChange,
  );
}