copyWith method
Story
copyWith({
- int? id,
- int? posterChatId,
- MessageSender? posterId,
- int? date,
- bool? isBeingPosted,
- bool? isBeingEdited,
- bool? isEdited,
- bool? isPostedToChatPage,
- bool? isVisibleOnlyForSelf,
- bool? canBeAddedToAlbum,
- bool? canBeDeleted,
- bool? canBeEdited,
- bool? canBeForwarded,
- bool? canBeReplied,
- bool? canSetPrivacySettings,
- bool? canToggleIsPostedToChatPage,
- bool? canGetStatistics,
- bool? canGetInteractions,
- bool? hasExpiredViewers,
- StoryRepostInfo? repostInfo,
- StoryInteractionInfo? interactionInfo,
- ReactionType? chosenReactionType,
- StoryPrivacySettings? privacySettings,
- StoryContent? content,
- List<
StoryArea> ? areas, - FormattedText? caption,
- List<
int> ? albumIds,
Implementation
Story copyWith({
int? id,
int? posterChatId,
MessageSender? posterId,
int? date,
bool? isBeingPosted,
bool? isBeingEdited,
bool? isEdited,
bool? isPostedToChatPage,
bool? isVisibleOnlyForSelf,
bool? canBeAddedToAlbum,
bool? canBeDeleted,
bool? canBeEdited,
bool? canBeForwarded,
bool? canBeReplied,
bool? canSetPrivacySettings,
bool? canToggleIsPostedToChatPage,
bool? canGetStatistics,
bool? canGetInteractions,
bool? hasExpiredViewers,
StoryRepostInfo? repostInfo,
StoryInteractionInfo? interactionInfo,
ReactionType? chosenReactionType,
StoryPrivacySettings? privacySettings,
StoryContent? content,
List<StoryArea>? areas,
FormattedText? caption,
List<int>? albumIds,
}) => Story(
id: id ?? this.id,
posterChatId: posterChatId ?? this.posterChatId,
posterId: posterId ?? this.posterId,
date: date ?? this.date,
isBeingPosted: isBeingPosted ?? this.isBeingPosted,
isBeingEdited: isBeingEdited ?? this.isBeingEdited,
isEdited: isEdited ?? this.isEdited,
isPostedToChatPage: isPostedToChatPage ?? this.isPostedToChatPage,
isVisibleOnlyForSelf: isVisibleOnlyForSelf ?? this.isVisibleOnlyForSelf,
canBeAddedToAlbum: canBeAddedToAlbum ?? this.canBeAddedToAlbum,
canBeDeleted: canBeDeleted ?? this.canBeDeleted,
canBeEdited: canBeEdited ?? this.canBeEdited,
canBeForwarded: canBeForwarded ?? this.canBeForwarded,
canBeReplied: canBeReplied ?? this.canBeReplied,
canSetPrivacySettings: canSetPrivacySettings ?? this.canSetPrivacySettings,
canToggleIsPostedToChatPage:
canToggleIsPostedToChatPage ?? this.canToggleIsPostedToChatPage,
canGetStatistics: canGetStatistics ?? this.canGetStatistics,
canGetInteractions: canGetInteractions ?? this.canGetInteractions,
hasExpiredViewers: hasExpiredViewers ?? this.hasExpiredViewers,
repostInfo: repostInfo ?? this.repostInfo,
interactionInfo: interactionInfo ?? this.interactionInfo,
chosenReactionType: chosenReactionType ?? this.chosenReactionType,
privacySettings: privacySettings ?? this.privacySettings,
content: content ?? this.content,
areas: areas ?? this.areas,
caption: caption ?? this.caption,
albumIds: albumIds ?? this.albumIds,
);