foldAllPages method

List<DocumentSnapshot> foldAllPages()

Implementation

List<DocumentSnapshot> foldAllPages() {
  final allDocs = _pages.fold<List<DocumentSnapshot>>(
    <DocumentSnapshot>[],
    (allDocs, page) => allDocs..addAll(page.docs),
  );
  return _removeDocumentsDuplications(allDocs);
}