copyWith method

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

Implementation

PostStory copyWith({
  int? chatId,
  InputStoryContent? content,
  InputStoryAreas? areas,
  FormattedText? caption,
  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,
  privacySettings: privacySettings ?? this.privacySettings,
  albumIds: albumIds ?? this.albumIds,
  activePeriod: activePeriod ?? this.activePeriod,
  fromStoryFullId: fromStoryFullId ?? this.fromStoryFullId,
  isPostedToChatPage: isPostedToChatPage ?? this.isPostedToChatPage,
  protectContent: protectContent ?? this.protectContent,
);