User constructor

const User({
  1. required int id,
  2. required String firstName,
  3. required String lastName,
  4. Usernames? usernames,
  5. required String phoneNumber,
  6. required UserStatus status,
  7. ProfilePhoto? profilePhoto,
  8. required int accentColorId,
  9. required int backgroundCustomEmojiId,
  10. UpgradedGiftColors? upgradedGiftColors,
  11. required int profileAccentColorId,
  12. required int profileBackgroundCustomEmojiId,
  13. EmojiStatus? emojiStatus,
  14. required bool isContact,
  15. required bool isMutualContact,
  16. required bool isCloseFriend,
  17. VerificationStatus? verificationStatus,
  18. required bool isPremium,
  19. required bool isSupport,
  20. RestrictionInfo? restrictionInfo,
  21. ActiveStoryState? activeStoryState,
  22. required bool restrictsNewChats,
  23. required int paidMessageStarCount,
  24. required bool haveAccess,
  25. required UserType type,
  26. required String languageCode,
  27. required bool addedToAttachmentMenu,
})

Implementation

const User({
  required this.id,
  required this.firstName,
  required this.lastName,
  this.usernames,
  required this.phoneNumber,
  required this.status,
  this.profilePhoto,
  required this.accentColorId,
  required this.backgroundCustomEmojiId,
  this.upgradedGiftColors,
  required this.profileAccentColorId,
  required this.profileBackgroundCustomEmojiId,
  this.emojiStatus,
  required this.isContact,
  required this.isMutualContact,
  required this.isCloseFriend,
  this.verificationStatus,
  required this.isPremium,
  required this.isSupport,
  this.restrictionInfo,
  this.activeStoryState,
  required this.restrictsNewChats,
  required this.paidMessageStarCount,
  required this.haveAccess,
  required this.type,
  required this.languageCode,
  required this.addedToAttachmentMenu,
});