getCollection method

Future<List<QueryDocumentSnapshot<Object?>>> getCollection(
  1. String collectionPath
)

Implementation

Future<List<QueryDocumentSnapshot>> getCollection(String collectionPath) async {
  QuerySnapshot querySnapshot = await _db.collection(collectionPath).get();
  return querySnapshot.docs;
}