removeDocumentListener method
Pass query
to remove the document corresponding to query
from the monitored list.
prefix
can be specified to prefix the path.
query
を渡してquery
に対応するドキュメントを監視対象から外します。
prefix
を指定するとパスにプレフィックスを付与可能です。
Implementation
void removeDocumentListener(
ModelAdapterDocumentQuery? query, {
String? prefix,
}) {
if (query == null) {
return;
}
final trimPath = _path(query.query.path, prefix);
if (_documentListeners.containsKey(trimPath)) {
_documentListeners[trimPath]!.remove(query.origin);
}
}