matchesSequence method
Whether the sequence matches this sequence type.
Implementation
@override
bool matchesSequence(XPathSequence sequence) {
if (!sequence.hasCardinality(cardinality)) return false;
return sequence.every(itemType.matchesItem);
}