canInlineFeature method

  1. @override
bool canInlineFeature(
  1. List<XMLNode> features
)
override

Called by the SASL2 negotiator to find out whether the negotiator is willing to inline a feature. features is the list of elements inside the element.

Implementation

@override
bool canInlineFeature(List<XMLNode> features) {
  return features.firstWhereOrNull(
        (child) => child.tag == 'fast' && child.xmlns == fastXmlns,
      ) !=
      null;
}