CachedPresence constructor

CachedPresence(
  1. PresenceType presence,
  2. int? lastActiveAgo,
  3. String? statusMsg,
  4. bool? currentlyActive,
  5. String userid,
)

Implementation

CachedPresence(this.presence, int? lastActiveAgo, this.statusMsg,
    this.currentlyActive, this.userid) {
  if (lastActiveAgo != null) {
    lastActiveTimestamp =
        DateTime.now().subtract(Duration(milliseconds: lastActiveAgo));
  }
}