firestoreInstance function

  1. @Riverpod(keepAlive: true)
FirebaseFirestore firestoreInstance(
  1. 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;