GroupChatMessage class

Represents a single message in a group chat.

Constructors

GroupChatMessage({required String documentId, required String body, required DateTime date, required String? groupId, required String userId})
Creates a GroupChatMessage instance.
const
GroupChatMessage.fromDocument(dynamic doc)
Creates a GroupChatMessage from a Firestore document snapshot.
factory
GroupChatMessage.fromSnapshot(dynamic snapshot)
Creates a GroupChatMessage from a Firestore query snapshot.

Properties

body → String
The content of the message.
final
date → DateTime
The date and time when the message was sent.
final
documentId → String
The unique document ID of the message in Firestore.
final
groupId → String?
The ID of the group this message belongs to, if any.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String
The ID of the user who sent the message.
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