merge method

AuthyoTheme merge(
  1. AuthyoTheme? other
)

Returns a copy where every non-null field of other replaces this one.

Implementation

AuthyoTheme merge(AuthyoTheme? other) {
  if (other == null) return this;
  return AuthyoTheme(
    primary: other.primary ?? primary,
    background: other.background ?? background,
    surface: other.surface ?? surface,
    inputBackground: other.inputBackground ?? inputBackground,
    inputBorder: other.inputBorder ?? inputBorder,
    inputText: other.inputText ?? inputText,
    buttonColor: other.buttonColor ?? buttonColor,
    buttonTextColor: other.buttonTextColor ?? buttonTextColor,
    buttonBorderColor: other.buttonBorderColor ?? buttonBorderColor,
    socialButtonColor: other.socialButtonColor ?? socialButtonColor,
    socialButtonTextColor:
        other.socialButtonTextColor ?? socialButtonTextColor,
    socialButtonBorderColor:
        other.socialButtonBorderColor ?? socialButtonBorderColor,
    headerText: other.headerText ?? headerText,
    headerTextColor: other.headerTextColor ?? headerTextColor,
    showHeader: other.showHeader ?? showHeader,
    bodyText: other.bodyText ?? bodyText,
    bodyTextColor: other.bodyTextColor ?? bodyTextColor,
    showBody: other.showBody ?? showBody,
    showLogo: other.showLogo ?? showLogo,
    logoUrl: other.logoUrl ?? logoUrl,
    logo: other.logo ?? logo,
    hideBranding: other.hideBranding ?? hideBranding,
    resendTimerSeconds: other.resendTimerSeconds ?? resendTimerSeconds,
    buttonShape: other.buttonShape ?? buttonShape,
    mainLayout: other.mainLayout ?? mainLayout,
    socialLayout: other.socialLayout ?? socialLayout,
    fontFamily: other.fontFamily ?? fontFamily,
    privacyLink: other.privacyLink ?? privacyLink,
    termsLink: other.termsLink ?? termsLink,
    glassOpacity: other.glassOpacity ?? glassOpacity,
    inputShape: other.inputShape ?? inputShape,
    inputUnderline: other.inputUnderline ?? inputUnderline,
    socialButtonShape: other.socialButtonShape ?? socialButtonShape,
    socialButtonsFullWidth:
        other.socialButtonsFullWidth ?? socialButtonsFullWidth,
    otpHidden: other.otpHidden ?? otpHidden,
    rememberMe: other.rememberMe ?? rememberMe,
    rememberMeDays: other.rememberMeDays ?? rememberMeDays,
  );
}