matches method

bool matches(
  1. UEpubNode node
)

Implementation

bool matches(UEpubNode node) {
  if (tag.isNotEmpty && tag != "*" && node.tag != tag) return false;
  if (id.isNotEmpty && node.id != id) return false;
  if (className.isNotEmpty && !node.classes.contains(className)) return false;
  return true;
}