presence property
Returns the UserPresence of this User.
Implementation
UserPresence? get presence =>
presenceIndex == null ? null : UserPresence.values[presenceIndex!];
Sets the UserPresence of this User to be the provided pres.
Implementation
set presence(UserPresence? pres) {
presenceIndex = pres?.index;
}