User class

Constructors

User(Client client, {required String id})
User.fromJSON(Client client, Map<String, dynamic> data)

Properties

avatar File?
The user's avatar, or null if not present.
getter/setter pair
blocked bool?
Whether you blocked the user from interacting with you.
getter/setter pair
client Client
The client that created this user.
getter/setter pair
friends bool?
Whether you are friends with this user.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The user's user ID.
getter/setter pair
name String?
The user's username.
getter/setter pair
online bool
Whether the user is online. Will default to false if online status is unknown.
getter/setter pair
partial bool
Whether the user is fully fetched. If false, only id is guaranteed to be present.
getter/setter pair
relationship UserRelationship
Your relationship with this user, Friends, Blocked or None. Defaults to None.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status UserStatus?
The user's status. Includes their presence and text status.
getter/setter pair

Methods

fetch({dynamic preferCache = true}) Future<User>
If the user is partial, this will fetch the full user. Pass preferCache: false to force re-fetching the user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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