User constructor

User({
  1. required int id,
  2. required bool isBot,
  3. required String firstName,
  4. String? lastName,
  5. String? username,
  6. String? languageCode,
  7. bool? isPremium,
  8. bool? addedToAttachmentMenu,
  9. bool? canJoinGroups,
  10. bool? canReadAllGroupMessages,
  11. bool? supportsInlineQueries,
})

Basic constructor

Implementation

User({
  required this.id,
  required this.isBot,
  required this.firstName,
  this.lastName,
  this.username,
  this.languageCode,
  this.isPremium,
  this.addedToAttachmentMenu,
  this.canJoinGroups,
  this.canReadAllGroupMessages,
  this.supportsInlineQueries,
});