Story constructor

const 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. required StoryPrivacySettings privacySettings,
  24. required StoryContent content,
  25. required List<StoryArea> areas,
  26. required FormattedText caption,
  27. Audio? music,
  28. required List<int> albumIds,
})

Implementation

const 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,
  required this.privacySettings,
  required this.content,
  required this.areas,
  required this.caption,
  this.music,
  required this.albumIds,
});