copyWith method

ChatActiveStories copyWith({
  1. int? chatId,
  2. StoryList? list,
  3. int? order,
  4. bool? canBeArchived,
  5. int? maxReadStoryId,
  6. List<StoryInfo>? stories,
})

Implementation

ChatActiveStories copyWith({
  int? chatId,
  StoryList? list,
  int? order,
  bool? canBeArchived,
  int? maxReadStoryId,
  List<StoryInfo>? stories,
}) =>
    ChatActiveStories(
      chatId: chatId ?? this.chatId,
      list: list ?? this.list,
      order: order ?? this.order,
      canBeArchived: canBeArchived ?? this.canBeArchived,
      maxReadStoryId: maxReadStoryId ?? this.maxReadStoryId,
      stories: stories ?? this.stories,
    );