copyWith method

WalletDialogTheme copyWith({
  1. Color? textColor,
  2. Color? borderColor,
  3. Color? backgroundColor,
  4. Color? gradientColor,
  5. Color? primaryColor,
  6. TextStyle? headerStyle,
  7. TextStyle? labelStyle,
  8. TextStyle? valueStyle,
  9. ButtonConfig? buttonConfirmStyle,
  10. ButtonConfig? buttonRejectStyle,
  11. EdgeInsets? dialogPadding,
  12. EdgeInsets? contentPadding,
  13. 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,
  );
}