isSubtypeOf method
Whether this type is equal to or a subtype of other.
Implementation
@override
bool isSubtypeOf(XPathType other) {
if (super.isSubtypeOf(other)) return true;
if (other is XPathArrayType) {
return memberType.isSubtypeOf(other.memberType);
}
return false;
}