papai_cloud_firestore_api

Last updated:

0 purchases

papai_cloud_firestore_api Image
papai_cloud_firestore_api Images
Add to Cart

Description:

papai cloud firestore api

Create firebase cloud firestore instance with either real cloud firestore or mock firestore
Usage #
see/test folder and /example folder.
Use apai_cloud_firestore_api.dart with dependency injection pattern.
First you create a class, than require a class of abstract CloudFireStore
class MyRepository{
const MyRepo({required this.instance});
final CloudFireStore instance;
...
copied to clipboard
}
Now you can use MyRepository class with CloudFirestore instance in your application by calling
final myRepo = MyRepository(instance: FireBaseCloudFireStoreAPI());
ANd you can use FakeFirebaseFirestore instance in your unit test by calling
final myRepo = MyRepository(instance: FakeFireBaseCloudFireStoreAPI());

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.