User constructor

User({
  1. required String id,
  2. required String username,
  3. required String discriminator,
  4. String? avatar,
  5. bool? bot,
  6. bool? system,
  7. bool? mfaEnabled,
  8. String? locale,
  9. bool? verified,
  10. String? email,
  11. int? flags,
  12. int? premiumType,
  13. int? publicFlags,
})

Implementation

User({
  required this.id,
  required this.username,
  required this.discriminator,
  this.avatar,
  this.bot,
  this.system,
  this.mfaEnabled,
  this.locale,
  this.verified,
  this.email,
  this.flags,
  this.premiumType,
  this.publicFlags,
});