performDocumentDelete method

  1. @override
Future<void> performDocumentDelete(
  1. DocumentDeleteRequest request
)
override

Implementation

@override
Future<void> performDocumentDelete(DocumentDeleteRequest request) async {
  await _wait();
  final key = _keyFromDocument(request.document);
  if (request.mustExist && !_values.containsKey(key)) {
    throw DatabaseException.notFound(request.document);
  }
  _values.remove(key);
}