Chat constructor

Chat({
  1. required int id,
  2. ChatType? type,
  3. required String title,
  4. ChatPhotoInfo? photo,
  5. required int accentColorId,
  6. required int backgroundCustomEmojiId,
  7. UpgradedGiftColors? upgradedGiftColors,
  8. required int profileAccentColorId,
  9. required int profileBackgroundCustomEmojiId,
  10. ChatPermissions? permissions,
  11. Message? lastMessage,
  12. required List<ChatPosition> positions,
  13. required List<ChatList> chatLists,
  14. MessageSender? messageSenderId,
  15. BlockList? blockList,
  16. required bool hasProtectedContent,
  17. required bool isTranslatable,
  18. required bool isMarkedAsUnread,
  19. required bool viewAsTopics,
  20. required bool hasScheduledMessages,
  21. required bool canBeDeletedOnlyForSelf,
  22. required bool canBeDeletedForAllUsers,
  23. required bool canBeReported,
  24. required bool defaultDisableNotification,
  25. required int unreadCount,
  26. required int lastReadInboxMessageId,
  27. required int lastReadOutboxMessageId,
  28. required int unreadMentionCount,
  29. required int unreadReactionCount,
  30. required int unreadPollVoteCount,
  31. ChatNotificationSettings? notificationSettings,
  32. ChatAvailableReactions? availableReactions,
  33. required int messageAutoDeleteTime,
  34. EmojiStatus? emojiStatus,
  35. ChatBackground? background,
  36. ChatTheme? theme,
  37. ChatActionBar? actionBar,
  38. BusinessBotManageBar? businessBotManageBar,
  39. VideoChat? videoChat,
  40. ChatJoinRequestsInfo? pendingJoinRequests,
  41. required int replyMarkupMessageId,
  42. DraftMessage? draftMessage,
  43. required String clientData,
})

Implementation

Chat({
  required this.id,
  this.type,
  required this.title,
  this.photo,
  required this.accentColorId,
  required this.backgroundCustomEmojiId,
  this.upgradedGiftColors,
  required this.profileAccentColorId,
  required this.profileBackgroundCustomEmojiId,
  this.permissions,
  this.lastMessage,
  required this.positions,
  required this.chatLists,
  this.messageSenderId,
  this.blockList,
  required this.hasProtectedContent,
  required this.isTranslatable,
  required this.isMarkedAsUnread,
  required this.viewAsTopics,
  required this.hasScheduledMessages,
  required this.canBeDeletedOnlyForSelf,
  required this.canBeDeletedForAllUsers,
  required this.canBeReported,
  required this.defaultDisableNotification,
  required this.unreadCount,
  required this.lastReadInboxMessageId,
  required this.lastReadOutboxMessageId,
  required this.unreadMentionCount,
  required this.unreadReactionCount,
  required this.unreadPollVoteCount,
  this.notificationSettings,
  this.availableReactions,
  required this.messageAutoDeleteTime,
  this.emojiStatus,
  this.background,
  this.theme,
  this.actionBar,
  this.businessBotManageBar,
  this.videoChat,
  this.pendingJoinRequests,
  required this.replyMarkupMessageId,
  this.draftMessage,
  required this.clientData,
});