NiceChatMessage class

Constructors

NiceChatMessage({required String id, required String content, required String senderId, required String senderName, String? senderAvatarUrl, required DateTime timestamp, NiceChatMessageType type = NiceChatMessageType.text, bool isRead = false, Map<String, dynamic>? metadata})
const

Properties

content String
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
isRead bool
final
metadata Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderAvatarUrl String?
final
senderId String
final
senderName String
final
timestamp DateTime
final
type NiceChatMessageType
final

Methods

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

Operators

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