User class

Constructors

User({required String id, required String username, required String discriminator, String? avatar, bool? bot, bool? system, bool? mfaEnabled, String? locale, bool? verified, String? email, int? flags, int? premiumType, int? publicFlags})

Properties

avatar String?
final
bot bool?
final
discriminator String
final
email String?
final
flags int?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
locale String?
final
mfaEnabled bool?
final
premiumType int?
final
publicFlags int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system bool?
final
username String
final
verified bool?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) User