copyWith method
创建一个新的配置,覆盖当前配置的某些属性
Implementation
RCKLinkStyleConfig copyWith({
TextStyle? senderTextStyle,
TextStyle? receiverTextStyle,
bool? showUnderline,
}) {
return RCKLinkStyleConfig(
senderTextStyle: senderTextStyle ?? this.senderTextStyle,
receiverTextStyle: receiverTextStyle ?? this.receiverTextStyle,
showUnderline: showUnderline ?? this.showUnderline,
);
}