FirestoreWriteRepository mixin

Mixin for Firestore Write Operations

This mixin provides functionalities for writing documents to a Firestore collection. It allows for saving and deleting documents, with logging support for tracking the progress and completion of operations.

Properties

collection String
The name of the Firestore collection. This should be overridden by classes that implement this mixin.
no setter
firestoreWriteService FirestoreWriteService
Instance of FirestoreWriteService used to perform write operations.
no setter
hashCode int
The hash code for this object.
no setterinherited
loggerService LoggerService?
Optional LoggerService for logging events, errors, and timing.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteDocument({required String documentId}) Future<void>
Deletes a document from Firestore by its ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveDocument({required Map<String, dynamic> data}) Future<void>
Saves a document to Firestore.
toString() String
A string representation of this object.
inherited

Operators

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