UTDChatMessage class

Constructors

UTDChatMessage({required String senderUserId, required String senderName, required String text, required DateTime timestamp, Map<String, dynamic> userData = const {}, String? messageID})
UTDChatMessage.fromJson(Map<String, dynamic> json)
factory

Properties

attributes Map<String, String>
no setter
hashCode int
The hash code for this object.
no setterinherited
messageID String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderName String
final
senderUserId String
final
text String
The message body. UNTRUSTED, peer-supplied input relayed verbatim by the backend (no server-side sanitization). Render as plain text only — never pass to an HTML/WebView/markdown sink. See security_edits M7.
final
timestamp DateTime
final
userData Map<String, dynamic>
final

Methods

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

Operators

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

Static Methods

isChat(Map<String, dynamic> json) bool