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 int id,
  24. int? accessHash,
  25. String? firstName,
  26. String? lastName,
  27. String? username,
  28. String? phone,
  29. UserProfilePhotoBase? photo,
  30. UserStatusBase? status,
  31. int? botInfoVersion,
  32. List<RestrictionReasonBase>? restrictionReason,
  33. String? botInlinePlaceholder,
  34. String? langCode,
  35. EmojiStatusBase? emojiStatus,
  36. List<UsernameBase>? usernames,
  37. int? storiesMaxId,
  38. PeerColorBase? color,
  39. PeerColorBase? profileColor,
})

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.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,
}) : super._();