copyWith method
PostStory
copyWith({
- int? chatId,
- InputStoryContent? content,
- InputStoryAreas? areas,
- FormattedText? caption,
- StoryPrivacySettings? privacySettings,
- List<
int> ? albumIds, - int? activePeriod,
- StoryFullId? fromStoryFullId,
- bool? isPostedToChatPage,
- 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,
);