copyWith method

DialogConfig copyWith({
  1. double? dialogWidth,
  2. double? radius,
  3. EdgeInsets? iconPadding,
  4. EdgeInsets? titlePaddingSm,
  5. EdgeInsets? titlePaddingLg,
  6. BaseTextStyle? titleTextStyle,
  7. TextAlign? titleTextAlign,
  8. EdgeInsets? contentPaddingSm,
  9. EdgeInsets? contentPaddingLg,
  10. BaseTextStyle? contentTextStyle,
  11. TextAlign? contentTextAlign,
  12. EdgeInsets? warningPaddingSm,
  13. EdgeInsets? warningPaddingLg,
  14. BaseTextStyle? warningTextStyle,
  15. TextAlign? warningTextAlign,
  16. EdgeInsets? dividerPadding,
  17. BaseTextStyle? mainActionTextStyle,
  18. BaseTextStyle? assistActionsTextStyle,
  19. Color? mainActionBackgroundColor,
  20. Color? assistActionsBackgroundColor,
  21. double? bottomHeight,
  22. Color? backgroundColor,
})

Implementation

DialogConfig copyWith({
  double? dialogWidth,
  double? radius,
  EdgeInsets? iconPadding,
  EdgeInsets? titlePaddingSm,
  EdgeInsets? titlePaddingLg,
  BaseTextStyle? titleTextStyle,
  TextAlign? titleTextAlign,
  EdgeInsets? contentPaddingSm,
  EdgeInsets? contentPaddingLg,
  BaseTextStyle? contentTextStyle,
  TextAlign? contentTextAlign,
  EdgeInsets? warningPaddingSm,
  EdgeInsets? warningPaddingLg,
  BaseTextStyle? warningTextStyle,
  TextAlign? warningTextAlign,
  EdgeInsets? dividerPadding,
  BaseTextStyle? mainActionTextStyle,
  BaseTextStyle? assistActionsTextStyle,
  Color? mainActionBackgroundColor,
  Color? assistActionsBackgroundColor,
  double? bottomHeight,
  Color? backgroundColor,
}) {
  return DialogConfig(
    dialogWidth: dialogWidth ?? _dialogWidth,
    radius: radius ?? _radius,
    iconPadding: iconPadding ?? _iconPadding,
    titlePaddingSm: titlePaddingSm ?? _titlePaddingSm,
    titlePaddingLg: titlePaddingLg ?? _titlePaddingLg,
    titleTextStyle: titleTextStyle ?? _titleTextStyle,
    titleTextAlign: titleTextAlign ?? _titleTextAlign,
    contentPaddingSm: contentPaddingSm ?? _contentPaddingSm,
    contentPaddingLg: contentPaddingLg ?? _contentPaddingLg,
    contentTextStyle: contentTextStyle ?? _contentTextStyle,
    contentTextAlign: contentTextAlign ?? _contentTextAlign,
    warningPaddingSm: warningPaddingSm ?? _warningPaddingSm,
    warningPaddingLg: warningPaddingLg ?? _warningPaddingLg,
    warningTextStyle: warningTextStyle ?? _warningTextStyle,
    warningTextAlign: warningTextAlign ?? _warningTextAlign,
    dividerPadding: dividerPadding ?? _dividerPadding,
    mainActionTextStyle: mainActionTextStyle ?? _mainActionTextStyle,
    assistActionsTextStyle: assistActionsTextStyle ?? _assistActionsTextStyle,
    mainActionBackgroundColor:
        mainActionBackgroundColor ?? _mainActionBackgroundColor,
    assistActionsBackgroundColor:
        assistActionsBackgroundColor ?? _assistActionsBackgroundColor,
    bottomHeight: bottomHeight ?? _bottomHeight,
    backgroundColor: backgroundColor ?? _backgroundColor,
  );
}