applyCollectors static method

String? applyCollectors(
  1. Element element,
  2. List<String> collectors
)

Implementation

static String? applyCollectors(dom.Element element, List<String> collectors) {
  return collectors
      .map((collector) => applyCollector(element, collector))
      .where((element) => element != null)
      .where((element) => element!.isNotEmpty)
      .firstWhere((element) => true, orElse: () => null);
}