FirefastStore class

A service class that provides simplified access to Firestore operations.

FirefastStore extends PathBasedDataSource to provide CRUD operations for Firestore documents, using the singleton pattern for global access. This class acts as a wrapper around FirebaseFirestore to provide a more convenient API for working with Firestore data.

Inheritance

Constructors

FirefastStore.new(FirebaseFirestore datasource)
Creates a new FirefastStore instance with the provided FirebaseFirestore.

Properties

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

Methods

delete(String path) Future<String?>
Deletes a Firestore document at the specified path.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overwrite(String path, Map<String, dynamic> data) Future<String?>
Overwrites a Firestore document with the provided data.
override
read(String path) Future<Map<String, dynamic>?>
Reads a Firestore document at the specified path.
override
toString() String
A string representation of this object.
inherited
write(String path, Map<String, dynamic> data) Future<String?>
Writes data to a Firestore document at the specified path.
override

Operators

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

Static Properties

instance FirefastStore
Gets the singleton instance of FirefastStore.
no setter

Static Methods

col(String collection) FirestoreCollectionPath
Creates a FirestoreCollectionPath for the specified collection.
overrideInstance(FirefastStore customServices) → void
Overrides the default singleton instance with a custom implementation.
resetInstance() → void
Resets the singleton instance to null.