readAll method

  1. @override
Future<List<T>> readAll()
override

Gets all documents from the collection

Does NOT refresh automatically

Related: streamAll

Implementation

@override
Future<List<T>> readAll() async {
  final snapshot = await ref.get();

  return snapshot.docs.toListT();
}