copyWith method

PostStory copyWith({
  1. int? chatId,
  2. InputStoryContent? content,
  3. InputStoryAreas? areas,
  4. FormattedText? caption,
  5. InputAudio? music,
  6. StoryPrivacySettings? privacySettings,
  7. List<int>? albumIds,
  8. int? activePeriod,
  9. StoryFullId? fromStoryFullId,
  10. bool? isPostedToChatPage,
  11. bool? protectContent,
})

Implementation

PostStory copyWith({
  int? chatId,
  InputStoryContent? content,
  InputStoryAreas? areas,
  FormattedText? caption,
  InputAudio? music,
  StoryPrivacySettings? privacySettings,
  List<int>? albumIds,
  int? activePeriod,
  StoryFullId? fromStoryFullId,
  bool? isPostedToChatPage,
  bool? protectContent,
}) =>
    PostStory(
      chatId: chatId ?? this.chatId,
      content: content ?? this.content,
      areas: areas ?? this.areas,
      caption: caption ?? this.caption,
      music: music ?? this.music,
      privacySettings: privacySettings ?? this.privacySettings,
      albumIds: albumIds ?? this.albumIds,
      activePeriod: activePeriod ?? this.activePeriod,
      fromStoryFullId: fromStoryFullId ?? this.fromStoryFullId,
      isPostedToChatPage: isPostedToChatPage ?? this.isPostedToChatPage,
      protectContent: protectContent ?? this.protectContent,
    );