AppwriteNotificationApi class
A class that provides methods to interact with the Firestore database for notifications.
Constructors
- AppwriteNotificationApi({required Databases db, required String databaseId, required String collectionId})
Properties
- collectionId → String
-
final
- databaseId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDocument(
Map< String, dynamic> data) → Future<Document> - Adds a new document
-
getDataCollection(
) → Future< DocumentList> - Fetches all documents in the collection.
-
getDocumentById(
String documentId) → Future< Document> - Gets a document by its ID
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDocument(
String documentId) → Future< void> - Deletes a document by its ID
-
streamDataCollection(
String? userId) → Future< DocumentList> - Simulates streaming documents for a user. You can set up Appwrite Realtime or poll this periodically.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDocument(
bool isRead, String? documentId) → Future< void> - Updates a document's read status
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited