Story constructor

Story({
  1. required int id,
  2. required int posterChatId,
  3. MessageSender? posterId,
  4. required int date,
  5. required bool isBeingPosted,
  6. required bool isBeingEdited,
  7. required bool isEdited,
  8. required bool isPostedToChatPage,
  9. required bool isVisibleOnlyForSelf,
  10. required bool canBeAddedToAlbum,
  11. required bool canBeDeleted,
  12. required bool canBeEdited,
  13. required bool canBeForwarded,
  14. required bool canBeReplied,
  15. required bool canSetPrivacySettings,
  16. required bool canToggleIsPostedToChatPage,
  17. required bool canGetStatistics,
  18. required bool canGetInteractions,
  19. required bool hasExpiredViewers,
  20. StoryRepostInfo? repostInfo,
  21. StoryInteractionInfo? interactionInfo,
  22. ReactionType? chosenReactionType,
  23. StoryPrivacySettings? privacySettings,
  24. StoryContent? content,
  25. required List<StoryArea> areas,
  26. FormattedText? caption,
  27. required List<int> albumIds,
})

Implementation

Story({
  required this.id,
  required this.posterChatId,
  this.posterId,
  required this.date,
  required this.isBeingPosted,
  required this.isBeingEdited,
  required this.isEdited,
  required this.isPostedToChatPage,
  required this.isVisibleOnlyForSelf,
  required this.canBeAddedToAlbum,
  required this.canBeDeleted,
  required this.canBeEdited,
  required this.canBeForwarded,
  required this.canBeReplied,
  required this.canSetPrivacySettings,
  required this.canToggleIsPostedToChatPage,
  required this.canGetStatistics,
  required this.canGetInteractions,
  required this.hasExpiredViewers,
  this.repostInfo,
  this.interactionInfo,
  this.chosenReactionType,
  this.privacySettings,
  this.content,
  required this.areas,
  this.caption,
  required this.albumIds,
});