User constructor

User({
  1. required Snowflake id,
  2. required String username,
  3. required String discriminator,
  4. String? globalName,
  5. String? avatar,
  6. bool? bot,
  7. bool? system,
  8. bool? mfaEnabled,
  9. String? banner,
  10. int? accentColor,
  11. String? locale,
  12. bool? verified,
  13. String? email,
  14. BitMask? flags,
  15. BitMask? premiumType,
  16. BitMask? publicFlags,
  17. AvatarDecorationData? decoration,
})

Implementation

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