UserPresence class

Annotations
  • @freezed

Constructors

UserPresence({required String userId, required String sessionId, required String username, required bool persistence, String? status})
const
factory
UserPresence.fromDto(UserPresence dto)
factory
UserPresence.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $UserPresenceCopyWith<UserPresence>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
persistence bool
Whether this presence generates persistent data/messages, if applicable for the stream type.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String
A unique session ID identifying the particular connection, because the user may have many.
no setterinherited
status String?
A user-set status message for this stream, if applicable.
no setterinherited
userId String
The user this presence belongs to.
no setterinherited
username String
The username for display purposes.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited