User constructor

const 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,
  12. bool? canConnectToBusiness,
  13. bool? hasMainWebApp,
})

Constructs a User object

Implementation

const 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,
  this.canConnectToBusiness,
  this.hasMainWebApp,
});