clear method

Future<void> clear()

Clear all documents and snapshots

Implementation

Future<void> clear() async {
  for (final documentId in List.of(_documents.keys)) {
    await _feed.untrack(documentId);
  }
  _documents.clear();
  _snapshots.clear();
}