ChatUser class

Represents a user in the chat system

Constructors

ChatUser({required String userId, required String username, bool isOnline = false, DateTime? lastSeen, String? avatarUrl})
Constructor
ChatUser.fromMap(Map<String, dynamic> map)
Creates a ChatUser from a Map object
factory

Properties

avatarUrl → String?
Avatar URL
final
hashCode → int
The hash code for this object.
no setterinherited
isOnline → bool
Whether the user is online
final
lastSeen → DateTime?
Last seen timestamp
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String
Unique ID of the user
final
username → String
Username of the user
final

Methods

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

Operators

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