copyWith method

RCKChatPageConfig copyWith({
  1. RCKChatAppBarConfig? appBarConfig,
  2. RCKBubbleConfig? bubbleConfig,
  3. RCKChatBackgroundConfig? backgroundConfig,
  4. RCKMessageInputConfig? inputConfig,
})

创建一个新的配置,覆盖当前配置的某些属性

Implementation

RCKChatPageConfig copyWith({
  RCKChatAppBarConfig? appBarConfig,
  RCKBubbleConfig? bubbleConfig,
  RCKChatBackgroundConfig? backgroundConfig,
  RCKMessageInputConfig? inputConfig,
}) {
  return RCKChatPageConfig(
    appBarConfig: appBarConfig ?? this.appBarConfig,
    bubbleConfig: bubbleConfig ?? this.bubbleConfig,
    backgroundConfig: backgroundConfig ?? this.backgroundConfig,
    inputConfig: inputConfig ?? this.inputConfig,
  );
}