User constructor

const User({
  1. required bool self,
  2. required bool contact,
  3. required bool mutualContact,
  4. required bool deleted,
  5. required bool bot,
  6. required bool botChatHistory,
  7. required bool botNochats,
  8. required bool verified,
  9. required bool restricted,
  10. required bool min,
  11. required bool botInlineGeo,
  12. required bool support,
  13. required bool scam,
  14. required bool applyMinPhoto,
  15. required bool fake,
  16. required bool botAttachMenu,
  17. required bool premium,
  18. required bool attachMenuEnabled,
  19. required bool botCanEdit,
  20. required bool closeFriend,
  21. required bool storiesHidden,
  22. required bool storiesUnavailable,
  23. required bool contactRequirePremium,
  24. required bool botBusiness,
  25. required bool botHasMainApp,
  26. required bool botForumView,
  27. required bool botForumCanManageTopics,
  28. required bool botCanManageBots,
  29. required bool botGuestchat,
  30. required bool botGuard,
  31. required int id,
  32. int? accessHash,
  33. String? firstName,
  34. String? lastName,
  35. String? username,
  36. String? phone,
  37. UserProfilePhotoBase? photo,
  38. UserStatusBase? status,
  39. int? botInfoVersion,
  40. List<RestrictionReasonBase>? restrictionReason,
  41. String? botInlinePlaceholder,
  42. String? langCode,
  43. EmojiStatusBase? emojiStatus,
  44. List<UsernameBase>? usernames,
  45. RecentStoryBase? storiesMaxId,
  46. PeerColorBase? color,
  47. PeerColorBase? profileColor,
  48. int? botActiveUsers,
  49. int? botVerificationIcon,
  50. int? sendPaidMessagesStars,
  51. int? linkedCommunityId,
})

User constructor.

Implementation

const User({
  required this.self,
  required this.contact,
  required this.mutualContact,
  required this.deleted,
  required this.bot,
  required this.botChatHistory,
  required this.botNochats,
  required this.verified,
  required this.restricted,
  required this.min,
  required this.botInlineGeo,
  required this.support,
  required this.scam,
  required this.applyMinPhoto,
  required this.fake,
  required this.botAttachMenu,
  required this.premium,
  required this.attachMenuEnabled,
  required this.botCanEdit,
  required this.closeFriend,
  required this.storiesHidden,
  required this.storiesUnavailable,
  required this.contactRequirePremium,
  required this.botBusiness,
  required this.botHasMainApp,
  required this.botForumView,
  required this.botForumCanManageTopics,
  required this.botCanManageBots,
  required this.botGuestchat,
  required this.botGuard,
  required this.id,
  this.accessHash,
  this.firstName,
  this.lastName,
  this.username,
  this.phone,
  this.photo,
  this.status,
  this.botInfoVersion,
  this.restrictionReason,
  this.botInlinePlaceholder,
  this.langCode,
  this.emojiStatus,
  this.usernames,
  this.storiesMaxId,
  this.color,
  this.profileColor,
  this.botActiveUsers,
  this.botVerificationIcon,
  this.sendPaidMessagesStars,
  this.linkedCommunityId,
}) : super._();