matchesItem method
Whether the item matches this type.
Implementation
@override
bool matchesItem(XPathItem item) {
if (item is! XPathMap) return false;
if (keyType == xsAnyAtomicType && valueType == xsSequence) return true;
for (final entry in item.entries.entries) {
if (!keyType.matchesItem(entry.key)) return false;
if (!valueType.matchesSequence(entry.value)) return false;
}
return true;
}