FirestoreReadRepository mixin

Mixin for Firestore Read Operations

This mixin provides functionalities for reading documents from a Firestore collection. It allows for fetching individual documents by ID and fetching all documents from a collection.

Properties

collection String
The name of the Firestore collection. This should be overridden by classes that implement this mixin.
no setter
firestoreReadService FirestoreReadService
Instance of FirestoreReadService used to perform read 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

fetchAllDocuments() Future<List<Map<String, dynamic>>>
Fetches all documents from the Firestore collection.
fetchDocumentById({required String docId}) Future<DocumentSnapshot<Object?>>
Fetches a document from Firestore by its ID.
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