copyWith method

Story copyWith({
  1. int? id,
  2. int? senderChatId,
  3. int? date,
  4. bool? isBeingEdited,
  5. bool? isEdited,
  6. bool? isPinned,
  7. bool? isVisibleOnlyForSelf,
  8. bool? canBeForwarded,
  9. bool? canBeReplied,
  10. bool? canGetViewers,
  11. bool? hasExpiredViewers,
  12. StoryInteractionInfo? interactionInfo,
  13. StoryPrivacySettings? privacySettings,
  14. StoryContent? content,
  15. FormattedText? caption,
  16. dynamic extra,
  17. 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,
    );