matchesFeature method
Returns true if a feature in features
, which are the children of the
<stream:features /> nonza, can be negotiated. Otherwise, returns false.
Implementation
bool matchesFeature(List<XMLNode> features) {
return features.firstWhereOrNull(
(XMLNode feature) => feature.attributes['xmlns'] == negotiatingXmlns,
) !=
null;
}