copyWith method

BotSubsessionTopicContext copyWith({
  1. String? conversationId,
  2. V2NIMTopic? topic,
  3. bool? isPlaceholder,
  4. String? placeholderTitle,
  5. String? localKey,
})

Implementation

BotSubsessionTopicContext copyWith({
  String? conversationId,
  V2NIMTopic? topic,
  bool? isPlaceholder,
  String? placeholderTitle,
  String? localKey,
}) {
  return BotSubsessionTopicContext(
    conversationId: conversationId ?? this.conversationId,
    topic: topic ?? this.topic,
    isPlaceholder: isPlaceholder ?? this.isPlaceholder,
    placeholderTitle: placeholderTitle ?? this.placeholderTitle,
    localKey: localKey ?? this.localKey,
  );
}