merge method
Implementation
DialogConfig merge(DialogConfig? other) {
if (other == null) return this;
return copyWith(
dialogWidth: other._dialogWidth,
radius: other._radius,
iconPadding: other._iconPadding,
titlePaddingSm: other._titlePaddingSm,
titlePaddingLg: other._titlePaddingLg,
titleTextStyle: titleTextStyle.merge(other._titleTextStyle),
titleTextAlign: other._titleTextAlign,
contentPaddingSm: other._contentPaddingSm,
contentPaddingLg: other._contentPaddingLg,
contentTextStyle: contentTextStyle.merge(other._contentTextStyle),
contentTextAlign: other._contentTextAlign,
warningPaddingSm: other._warningPaddingSm,
warningPaddingLg: other._warningPaddingLg,
warningTextStyle: warningTextStyle.merge(other._warningTextStyle),
warningTextAlign: other._warningTextAlign,
dividerPadding: other._dividerPadding,
mainActionTextStyle:
mainActionTextStyle.merge(other._mainActionTextStyle),
assistActionsTextStyle:
assistActionsTextStyle.merge(other._assistActionsTextStyle),
mainActionBackgroundColor: other._mainActionBackgroundColor,
assistActionsBackgroundColor: other._assistActionsBackgroundColor,
bottomHeight: other._bottomHeight,
backgroundColor: other._backgroundColor,
);
}