copyWith method

ChatTheme copyWith({
  1. Color? backgroundColor,
  2. Color? cardBackgroundColor,
  3. Color? cardBorderColor,
  4. Color? appBarBackgroundColor,
  5. Color? userMessageColor,
  6. Color? inputTextFieldColor,
  7. Color? inputTextFieldBorderColor,
  8. Color? sendButtonColor,
  9. Color? sendButtonForegroundColor,
  10. Color? waveColor,
  11. Color? attachmentPickerBackgroundColor,
  12. Color? actionIconColor,
  13. Color? cancelRecordingIconColor,
  14. Color? closeModalIconColor,
  15. Color? playAudioIconColor,
  16. Color? pauseAudioIconColor,
  17. Color? attachIconColor,
  18. Color? cameraIconColor,
  19. Color? galleryIconColor,
  20. Color? trashIconColor,
  21. Color? currencyIconColor,
  22. Color? numericControlIconColor,
  23. Color? imagePlaceholderBackgroundColor,
  24. Color? imagePlaceholderIconColor,
  25. Color? productPriceBackgroundColor,
  26. Color? pricePerSubunitColor,
  27. Color? pickerButtonBorderColor,
  28. Color? quickReplyColor,
  29. Color? quickReplyBorderColor,
  30. TextStyle? quickReplyStyle,
  31. TextStyle? modalHeaderStyle,
  32. TextStyle? userMessageTextStyle,
  33. TextStyle? assistantMessageTextStyle,
  34. TextStyle? hintTextStyle,
  35. TextStyle? timerTextStyle,
  36. TextStyle? productTitleStyle,
  37. TextStyle? productSubunitsStyle,
  38. TextStyle? productPriceStyle,
  39. TextStyle? productSalePriceStrikeStyle,
  40. TextStyle? pricePerSubunitStyle,
  41. TextStyle? expandControlsStyle,
  42. ImageProvider<Object>? chatIconImage,
  43. IconData? sendButtonIcon,
  44. IconData? recordAudioIcon,
  45. IconData? shopIcon,
  46. IconData? cartIcon,
  47. IconData? cancelRecordingIcon,
  48. IconData? closeModalIcon,
  49. IconData? playAudioIcon,
  50. IconData? pauseAudioIcon,
  51. IconData? attachIcon,
  52. IconData? cameraIcon,
  53. IconData? galleryIcon,
  54. IconData? trashIcon,
  55. IconData? imagePlaceHolderIcon,
  56. IconData? currencyIcon,
  57. IconData? addIcon,
  58. IconData? removeIcon,
})

Implementation

ChatTheme copyWith({
  Color? backgroundColor,
  Color? cardBackgroundColor,
  Color? cardBorderColor,
  Color? appBarBackgroundColor,
  Color? userMessageColor,
  Color? inputTextFieldColor,
  Color? inputTextFieldBorderColor,
  Color? sendButtonColor,
  Color? sendButtonForegroundColor,
  Color? waveColor,
  Color? attachmentPickerBackgroundColor,
  Color? actionIconColor,
  Color? cancelRecordingIconColor,
  Color? closeModalIconColor,
  Color? playAudioIconColor,
  Color? pauseAudioIconColor,
  Color? attachIconColor,
  Color? cameraIconColor,
  Color? galleryIconColor,
  Color? trashIconColor,
  Color? currencyIconColor,
  Color? numericControlIconColor,
  Color? imagePlaceholderBackgroundColor,
  Color? imagePlaceholderIconColor,
  Color? productPriceBackgroundColor,
  Color? pricePerSubunitColor,
  Color? pickerButtonBorderColor,
  Color? quickReplyColor,
  Color? quickReplyBorderColor,
  TextStyle? quickReplyStyle,
  TextStyle? modalHeaderStyle,
  TextStyle? userMessageTextStyle,
  TextStyle? assistantMessageTextStyle,
  TextStyle? hintTextStyle,
  TextStyle? timerTextStyle,
  TextStyle? productTitleStyle,
  TextStyle? productSubunitsStyle,
  TextStyle? productPriceStyle,
  TextStyle? productSalePriceStrikeStyle,
  TextStyle? pricePerSubunitStyle,
  TextStyle? expandControlsStyle,
  ImageProvider? chatIconImage,
  IconData? sendButtonIcon,
  IconData? recordAudioIcon,
  IconData? shopIcon,
  IconData? cartIcon,
  IconData? cancelRecordingIcon,
  IconData? closeModalIcon,
  IconData? playAudioIcon,
  IconData? pauseAudioIcon,
  IconData? attachIcon,
  IconData? cameraIcon,
  IconData? galleryIcon,
  IconData? trashIcon,
  IconData? imagePlaceHolderIcon,
  IconData? currencyIcon,
  IconData? addIcon,
  IconData? removeIcon,
}) {
  return ChatTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    cardBackgroundColor: cardBackgroundColor ?? this.cardBackgroundColor,
    cardBorderColor: cardBorderColor ?? this.cardBorderColor,
    appBarBackgroundColor:
        appBarBackgroundColor ?? this.appBarBackgroundColor,
    userMessageColor: userMessageColor ?? this.userMessageColor,
    inputTextFieldColor: inputTextFieldColor ?? this.inputTextFieldColor,
    inputTextFieldBorderColor:
        inputTextFieldBorderColor ?? this.inputTextFieldBorderColor,
    sendButtonColor: sendButtonColor ?? this.sendButtonColor,
    sendButtonForegroundColor:
        sendButtonForegroundColor ?? this.sendButtonForegroundColor,
    waveColor: waveColor ?? this.waveColor,
    attachmentPickerBackgroundColor:
        attachmentPickerBackgroundColor ??
        this.attachmentPickerBackgroundColor,
    actionIconColor: actionIconColor ?? this.actionIconColor,
    cancelRecordingIconColor:
        cancelRecordingIconColor ?? this.cancelRecordingIconColor,
    closeModalIconColor: closeModalIconColor ?? this.closeModalIconColor,
    playAudioIconColor: playAudioIconColor ?? this.playAudioIconColor,
    pauseAudioIconColor: pauseAudioIconColor ?? this.pauseAudioIconColor,
    attachIconColor: attachIconColor ?? this.attachIconColor,
    cameraIconColor: cameraIconColor ?? this.cameraIconColor,
    galleryIconColor: galleryIconColor ?? this.galleryIconColor,
    trashIconColor: trashIconColor ?? this.trashIconColor,
    currencyIconColor: currencyIconColor ?? this.currencyIconColor,
    numericControlIconColor:
        numericControlIconColor ?? this.numericControlIconColor,
    imagePlaceholderBackgroundColor:
        imagePlaceholderBackgroundColor ??
        this.imagePlaceholderBackgroundColor,
    imagePlaceholderIconColor:
        imagePlaceholderIconColor ?? this.imagePlaceholderIconColor,
    productPriceBackgroundColor:
        productPriceBackgroundColor ?? this.productPriceBackgroundColor,
    pricePerSubunitColor: pricePerSubunitColor ?? this.pricePerSubunitColor,
    pickerButtonBorderColor:
        pickerButtonBorderColor ?? this.pickerButtonBorderColor,
    quickReplyColor: quickReplyColor ?? this.quickReplyColor,
    quickReplyBorderColor: quickReplyBorderColor ?? this.quickReplyBorderColor,
    quickReplyStyle: quickReplyStyle ?? this.quickReplyStyle,
    modalHeaderStyle: modalHeaderStyle ?? this.modalHeaderStyle,
    userMessageTextStyle: userMessageTextStyle ?? this.userMessageTextStyle,
    assistantMessageTextStyle:
        assistantMessageTextStyle ?? this.assistantMessageTextStyle,
    hintTextStyle: hintTextStyle ?? this.hintTextStyle,
    timerTextStyle: timerTextStyle ?? this.timerTextStyle,
    productTitleStyle: productTitleStyle ?? this.productTitleStyle,
    productSubunitsStyle: productSubunitsStyle ?? this.productSubunitsStyle,
    productPriceStyle: productPriceStyle ?? this.productPriceStyle,
    productSalePriceStrikeStyle:
        productSalePriceStrikeStyle ?? this.productSalePriceStrikeStyle,
    pricePerSubunitStyle: pricePerSubunitStyle ?? this.pricePerSubunitStyle,
    expandControlsStyle: expandControlsStyle ?? this.expandControlsStyle,
    chatIconImage: chatIconImage ?? this.chatIconImage,
    sendButtonIcon: sendButtonIcon ?? this.sendButtonIcon,
    recordAudioIcon: recordAudioIcon ?? this.recordAudioIcon,
    shopIcon: shopIcon ?? this.shopIcon,
    cartIcon: cartIcon ?? this.cartIcon,
    cancelRecordingIcon: cancelRecordingIcon ?? this.cancelRecordingIcon,
    closeModalIcon: closeModalIcon ?? this.closeModalIcon,
    playAudioIcon: playAudioIcon ?? this.playAudioIcon,
    pauseAudioIcon: pauseAudioIcon ?? this.pauseAudioIcon,
    attachIcon: attachIcon ?? this.attachIcon,
    cameraIcon: cameraIcon ?? this.cameraIcon,
    galleryIcon: galleryIcon ?? this.galleryIcon,
    trashIcon: trashIcon ?? this.trashIcon,
    imagePlaceHolderIcon: imagePlaceHolderIcon ?? this.imagePlaceHolderIcon,
    currencyIcon: currencyIcon ?? this.currencyIcon,
    addIcon: addIcon ?? this.addIcon,
    removeIcon: removeIcon ?? this.removeIcon,
  );
}