isNodeDirty method
Returns true if nodeId was marked dirty by the last
notifyDocumentChanged call. If no specific dirty nodes were set,
returns true for all IDs (backward-compatible behaviour).
Implementation
bool isNodeDirty(String nodeId) =>
_dirtyNodeIds.isEmpty || _dirtyNodeIds.contains(nodeId);