ChatBackendMessage class
A single stored chat message, normalized across backends.
id is the backend's document/row id. data holds the raw fields
(text, photos, userId, timestamp) in the shape produced by
ChatBackend.fetchMessages and consumed by InappChatUtils.toChatMessage.
Constructors
-
ChatBackendMessage({required String id, required Map<
String, dynamic> data}) -
Creates a ChatBackendMessage with the given
idanddata.
Properties
-
data
→ Map<
String, dynamic> -
The normalized message fields:
text,photos,userId,timestamp.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The backend-specific document/row id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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