FirebaseChatDocument class

Represents a chat document in Firebase.

Annotations

Constructors

FirebaseChatDocument({required bool personal, required bool canBeDeleted, List<String> users = const [], String? id, Timestamp? lastUsed, String? title, String? imageUrl, FirebaseMessageDocument? lastMessage})
Creates a new instance of FirebaseChatDocument.
const
FirebaseChatDocument.fromJson(Map<String, dynamic> json, String? id)
Constructs a FirebaseChatDocument from JSON.

Properties

canBeDeleted → bool
Indicates if the chat can be deleted.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The unique identifier of the chat document.
final
imageUrl → String?
The image URL of the chat.
final
lastMessage → FirebaseMessageDocument?
The last message in the chat.
final
lastUsed → Timestamp?
The timestamp of when the chat was last used.
final
personal → bool
Indicates if the chat is personal.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
The title of the chat.
final
users → List<String>
The list of users participating in the chat.
final

Methods

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

Operators

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