getAllData method
Implementation
@override
Future<List> getAllData(String collectionId) async {
await initialize();
final List resultList = [];
CollectionReference collectionRef = _db!.collection(collectionId);
await collectionRef.get().then((snapshot) {
for (var result in snapshot.docs) {
resultList.add(result);
}
});
return resultList;
}