merge static method

Implementation

static PlaceholderSetting merge(PlaceholderSetting data, PlaceholderSetting? fallback) {
  return PlaceholderSetting(
    useAnimatedSwitcher: data.useAnimatedSwitcher ?? fallback?.useAnimatedSwitcher,
    switchDuration: data.switchDuration ?? fallback?.switchDuration,
    switchReverseDuration: data.switchReverseDuration ?? fallback?.switchReverseDuration,
    switchInCurve: data.switchInCurve ?? fallback?.switchInCurve,
    switchOutCurve: data.switchOutCurve ?? fallback?.switchOutCurve,
    switchTransitionBuilder: data.switchTransitionBuilder ?? fallback?.switchTransitionBuilder,
    switchLayoutBuilder: data.switchLayoutBuilder ?? fallback?.switchLayoutBuilder,
    loadingText: data.loadingText ?? fallback?.loadingText,
    nothingText: data.nothingText ?? fallback?.nothingText,
    nothingRetryText: data.nothingRetryText ?? fallback?.nothingRetryText,
    unknownErrorText: data.unknownErrorText ?? fallback?.unknownErrorText,
    errorRetryText: data.errorRetryText ?? fallback?.errorRetryText,
    nothingIcon: data.nothingIcon ?? fallback?.nothingIcon,
    errorIcon: data.errorIcon ?? fallback?.errorIcon,
    textPadding: data.textPadding ?? fallback?.textPadding,
    iconPadding: data.iconPadding ?? fallback?.iconPadding,
    buttonPadding: data.buttonPadding ?? fallback?.buttonPadding,
    progressPadding: data.progressPadding ?? fallback?.progressPadding,
    wholePaddingUnlessNormal: data.wholePaddingUnlessNormal ?? fallback?.wholePaddingUnlessNormal,
    textStyle: data.textStyle ?? fallback?.textStyle,
    textMaxLines: data.textMaxLines ?? fallback?.textMaxLines,
    textOverflow: data.textOverflow ?? fallback?.textOverflow,
    buttonTextStyle: data.buttonTextStyle ?? fallback?.buttonTextStyle,
    buttonStyle: data.buttonStyle ?? fallback?.buttonStyle,
    iconSize: data.iconSize ?? fallback?.iconSize,
    iconColor: data.iconColor ?? fallback?.iconColor,
    progressSize: data.progressSize ?? fallback?.progressSize,
    progressStrokeWidth: data.progressStrokeWidth ?? fallback?.progressStrokeWidth,
    showLoadingProgress: data.showLoadingProgress ?? fallback?.showLoadingProgress,
    showLoadingText: data.showLoadingText ?? fallback?.showLoadingText,
    showNothingIcon: data.showNothingIcon ?? fallback?.showNothingIcon,
    showNothingText: data.showNothingText ?? fallback?.showNothingText,
    showNothingRetry: data.showNothingRetry ?? fallback?.showNothingRetry,
    showErrorIcon: data.showErrorIcon ?? fallback?.showErrorIcon,
    showErrorText: data.showErrorText ?? fallback?.showErrorText,
    showErrorRetry: data.showErrorRetry ?? fallback?.showErrorRetry,
    customLoadingProgressBuilder: data.customLoadingProgressBuilder ?? fallback?.customLoadingProgressBuilder,
    customLoadingTextBuilder: data.customLoadingTextBuilder ?? fallback?.customLoadingTextBuilder,
    customNothingIconBuilder: data.customNothingIconBuilder ?? fallback?.customNothingIconBuilder,
    customNothingTextBuilder: data.customNothingTextBuilder ?? fallback?.customNothingTextBuilder,
    customNothingRetryBuilder: data.customNothingRetryBuilder ?? fallback?.customNothingRetryBuilder,
    customErrorIconBuilder: data.customErrorIconBuilder ?? fallback?.customErrorIconBuilder,
    customErrorTextBuilder: data.customErrorTextBuilder ?? fallback?.customErrorTextBuilder,
    customErrorRetryBuilder: data.customErrorRetryBuilder ?? fallback?.customErrorRetryBuilder,
    customNormalStateBuilder: data.customNormalStateBuilder ?? fallback?.customNormalStateBuilder,
    customSwitcherBuilder: data.customSwitcherBuilder ?? fallback?.customSwitcherBuilder,
  );
}