FireStore class

A class for handling basic Firestore operations such as retrieving, adding, updating, and deleting documents within a Firestore collection.

Constructors

FireStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
obj → FirebaseFirestore
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteData(String collectionName, String docName) Future<void>
Deletes a specified document from a collection.
getData(String collectionName, String docName) Future<Map<String, dynamic>>
Retrieves data from a specified document within a collection.
getFirestoreInstance() → FirebaseFirestore
Returns the instance of FirebaseFirestore used in this class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(String collectionName, String docName, Map<String, dynamic> data) Future<void>
Adds or replaces data in a specified document within a collection.
toString() String
A string representation of this object.
inherited
updateData(String collectionName, String docName, Map<String, dynamic> data) Future<void>
Updates data in a specified document within a collection.

Operators

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