matchesItem method

bool matchesItem(
  1. XPathItem item
)

Whether the item matches this type.

Implementation

bool matchesItem(XPathItem item) => item.type.isSubtypeOf(this);