NiceChatMessage class

A chat message data model

Constructors

NiceChatMessage({required String id, required String text, required String senderId, String? senderName, String? senderAvatar, DateTime? timestamp, NiceMessageStatus? status, bool showAvatar = true, String? replyToId, Map<String, int>? reactions})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
final
reactions Map<String, int>?
final
replyToId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderAvatar String?
final
senderId String
final
senderName String?
final
showAvatar bool
final
status NiceMessageStatus?
final
text String
final
timestamp DateTime?
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