presence property

UserPresence? get presence

Returns the UserPresence of this User.

Implementation

UserPresence? get presence =>
    presenceIndex == null ? null : UserPresence.values[presenceIndex!];
set presence (UserPresence? pres)

Sets the UserPresence of this User to be the provided pres.

Implementation

set presence(UserPresence? pres) {
  presenceIndex = pres?.index;
}