firestoreInstance function
- @Riverpod(keepAlive: true)
- dynamic ref
A provider for the Firestore instance.
This provider is used to provide the Firestore instance to the FirestoreService class. It is used to interact with Firebase Firestore.
Implementation
@Riverpod(keepAlive: true)
FirebaseFirestore firestoreInstance(FirestoreInstanceRef ref) =>
FirebaseFirestore.instance;