copy

open fun copy(text: ChatTextStyle? = this.text, @ColorRes backgroundColor: Int? = this.backgroundColor, @DrawableRes backgroundImage: Int? = this.backgroundImage, font: ChatFontStyle? = this.font, @ColorRes textColor: Int? = this.textColor, @ColorRes linkTextColor: Int? = this.linkTextColor, paddings: SideSize? = this.paddings, @StringRes networkErrorText: Int = this.networkErrorText): TextMessageStyle

Создаёт новый экземпляр со значениями текущего, с возможностью переопределить любые поля.