close method

  1. @override
Future<void> close()
override

Disposes every document and forgets it.

Nothing is written: this registry has nowhere to write to, and says so.

Implementation

@override
Future<void> close() async {
  for (final document in _documents.values) {
    document.dispose();
  }
  await clear();
}