presence property

Presence? get presence

Implementation

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

Implementation

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