elemHandler function
Implementation
Object? elemHandler(
Parser parser,
Element parentData, {
required String selector,
}) {
if (parser.multiple) {
List<Element> qs = parentData.querySelectorAll(selector);
if (qs.isNotEmpty) {
return qs;
}
} else {
Element? qs = parentData.querySelector(selector);
if (qs != null) {
return qs;
}
}
return null;
}