matchesSequence method

  1. @override
bool matchesSequence(
  1. XPathSequence sequence
)
override

Whether the sequence matches this sequence type.

Implementation

@override
bool matchesSequence(XPathSequence sequence) {
  if (!sequence.hasCardinality(cardinality)) return false;
  return sequence.every(itemType.matchesItem);
}