copyWith method
WalletDialogTheme
copyWith({
- Color? textColor,
- Color? borderColor,
- Color? backgroundColor,
- Color? gradientColor,
- Color? primaryColor,
- TextStyle? headerStyle,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- ButtonConfig? buttonConfirmStyle,
- ButtonConfig? buttonRejectStyle,
- EdgeInsets? dialogPadding,
- EdgeInsets? contentPadding,
- double? itemSpacing,
Implementation
WalletDialogTheme copyWith({
Color? textColor,
Color? borderColor,
Color? backgroundColor,
Color? gradientColor,
Color? primaryColor,
TextStyle? headerStyle,
TextStyle? labelStyle,
TextStyle? valueStyle,
ButtonConfig? buttonConfirmStyle,
ButtonConfig? buttonRejectStyle,
EdgeInsets? dialogPadding,
EdgeInsets? contentPadding,
double? itemSpacing,
}) {
return WalletDialogTheme(
textColor: textColor ?? this.textColor,
borderColor: borderColor ?? this.borderColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
gradientColor: gradientColor ?? this.gradientColor,
primaryColor: primaryColor ?? this.primaryColor,
headerStyle: headerStyle ?? this.headerStyle,
labelStyle: labelStyle ?? this.labelStyle,
valueStyle: valueStyle ?? this.valueStyle,
buttonConfirmStyle: buttonConfirmStyle ?? this.buttonConfirmStyle,
buttonRejectStyle: buttonRejectStyle ?? this.buttonRejectStyle,
dialogPadding: dialogPadding ?? this.dialogPadding,
contentPadding: contentPadding ?? this.contentPadding,
itemSpacing: itemSpacing ?? this.itemSpacing,
);
}