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