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