User class

Constructors

User({required Session session, required String id, required String name, List<String>? email, List<String>? phone, String? availabilityText, String? locale, String? photoUrl, String? role, Map<String, String?>? custom, String? welcomeMessage})
const
User.fromId(String id, Session session)
const
User.of(User other)

Properties

availabilityText String?
The default message a user sees when starting a chat with this person.
finalinherited
custom Map<String, String?>?
Custom metadata for this user.
finalinherited
email List<String>?
One or more email address belonging to this user.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
id String
The unique user identifier.
finalinherited
locale String?
The language on the UI.
finalinherited
name String
This user's name which will be displayed on the TalkJS UI
finalinherited
phone List<String>?
One or more phone numbers belonging to this user.
finalinherited
photoUrl String?
An optional URL to a photo which will be displayed as this user's avatar
finalinherited
role String?
This user's role which allows you to change the behaviour of TalkJS for different users.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
welcomeMessage String?
The default message a user sees when starting a chat with this person.
finalinherited

Methods

getJsonString() String
For internal use only. Implementation detail that may change anytime.
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.
override