# matchesFeature method

bool matchesFeature(

1. List <XMLNode> features

)

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;
    }