FireStoreCollection constructor

FireStoreCollection(
  1. String path
)

Provide the 'path' of the Firebase database.

Implementation

FireStoreCollection(String path) {
  _auth = FirebaseAuth.instance;
  _user = _auth.currentUser;
  _store = FirebaseFirestore.instance;
  _collection = _store.collection(path);
}