MyUser class

User of an application being currently signed-in.

Annotations

Constructors

MyUser({required UserId id, required UserNum num, UserLogin? login, UserName? name, UserBio? bio, bool hasPassword = false, required MyUserEmails emails, required MyUserPhones phones, ChatDirectLink? chatDirectLink, int unreadChatsCount = 0, UserTextStatus? status, UserAvatar? avatar, UserCallCover? callCover, required int presenceIndex, required bool online, MuteDuration? muted, PreciseDateTime? lastSeenAt, WelcomeMessage? welcomeMessage})
MyUser.fromJson(Map<String, dynamic> json)
Constructs a MyUser from the provided json.
factory

Properties

avatar UserAvatar?
Avatar of this MyUser.
getter/setter pair
bio UserBio?
Arbitrary descriptive information about this MyUser.
getter/setter pair
callCover UserCallCover?
Call cover of this MyUser.
getter/setter pair
ChatDirectLink to the Chat with this MyUser.
getter/setter pair
emails MyUserEmails
List of already confirmed email addresses.
final
hashCode int
The hash code for this object.
no setterinherited
hasPassword bool
Indicator whether this MyUser has a password.
getter/setter pair
id UserId
Unique ID of this MyUser.
final
lastSeenAt PreciseDateTime?
PreciseDateTime this MyUser was last seen online at.
getter/setter pair
login UserLogin?
Unique login of this MyUser.
getter/setter pair
muted MuteDuration?
Mute duration of this MyUser.
getter/setter pair
name UserName?
Name of this MyUser.
getter/setter pair
num UserNum
Unique number of this MyUser.
final
online bool
Online state of this MyUser.
getter/setter pair
phones MyUserPhones
List of already confirmed phone numbers.
getter/setter pair
presence Presence
getter/setter pair
presenceIndex int
Presence of this MyUser.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status UserTextStatus?
Custom text status of this MyUser.
getter/setter pair
unreadChatsCount int
Count of the unread Chats of this MyUser.
getter/setter pair
welcomeMessage WelcomeMessage?
WelcomeMessage of this MyUser.
getter/setter pair

Methods

copyWith() MyUser
Returns a copy of this MyUser.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representing this MyUser.
toString() String
A string representation of this object.
override

Operators

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