copyWith method
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,
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,
);
}