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