copyWith method

BotSubsessionListItem copyWith({
  1. BotSubsessionTopicContext? context,
  2. String? title,
  3. String? summary,
  4. int? latestTime,
  5. bool? showUnreadDot,
  6. int? highlightStart,
  7. int? highlightEnd,
})

Implementation

BotSubsessionListItem copyWith({
  BotSubsessionTopicContext? context,
  String? title,
  String? summary,
  int? latestTime,
  bool? showUnreadDot,
  int? highlightStart,
  int? highlightEnd,
}) {
  return BotSubsessionListItem(
    context: context ?? this.context,
    title: title ?? this.title,
    summary: summary ?? this.summary,
    latestTime: latestTime ?? this.latestTime,
    showUnreadDot: showUnreadDot ?? this.showUnreadDot,
    highlightStart: highlightStart,
    highlightEnd: highlightEnd,
  );
}