all method

Future<List<T?>> all()

To get all documents call all List

Implementation

Future<List<T?>> all() async {
  QuerySnapshot snapshot = await _collectionReference.get();
  return snapshot.docs.map<T?>((doc) {
    return _toModel(doc);
  }).toList();
}