copyWith method
Story
copyWith({
- int? id,
- int? senderChatId,
- int? date,
- bool? isBeingEdited,
- bool? isEdited,
- bool? isPinned,
- bool? isVisibleOnlyForSelf,
- bool? canBeForwarded,
- bool? canBeReplied,
- bool? canGetViewers,
- bool? hasExpiredViewers,
- StoryInteractionInfo? interactionInfo,
- StoryPrivacySettings? privacySettings,
- StoryContent? content,
- dynamic extra,
- int? clientId,
Implementation
Story copyWith({
int? id,
int? senderChatId,
int? date,
bool? isBeingEdited,
bool? isEdited,
bool? isPinned,
bool? isVisibleOnlyForSelf,
bool? canBeForwarded,
bool? canBeReplied,
bool? canGetViewers,
bool? hasExpiredViewers,
StoryInteractionInfo? interactionInfo,
StoryPrivacySettings? privacySettings,
StoryContent? content,
FormattedText? caption,
dynamic extra,
int? clientId,
}) =>
Story(
id: id ?? this.id,
senderChatId: senderChatId ?? this.senderChatId,
date: date ?? this.date,
isBeingEdited: isBeingEdited ?? this.isBeingEdited,
isEdited: isEdited ?? this.isEdited,
isPinned: isPinned ?? this.isPinned,
isVisibleOnlyForSelf: isVisibleOnlyForSelf ?? this.isVisibleOnlyForSelf,
canBeForwarded: canBeForwarded ?? this.canBeForwarded,
canBeReplied: canBeReplied ?? this.canBeReplied,
canGetViewers: canGetViewers ?? this.canGetViewers,
hasExpiredViewers: hasExpiredViewers ?? this.hasExpiredViewers,
interactionInfo: interactionInfo ?? this.interactionInfo,
privacySettings: privacySettings ?? this.privacySettings,
content: content ?? this.content,
caption: caption ?? this.caption,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);