queryAllByTitle

List<DomNode> queryAllByTitle(

  1. String title, {
  2. bool exact = true,
})

Finds all elements with the given title attribute.

Implementation

List<DomNode> queryAllByTitle(String title, {bool exact = true}) =>
    _container.querySelectorAll('[title]').where((el) {
      final attr = el.getAttribute('title') ?? '';
      return exact ? attr == title : attr.contains(title);
    }).toList();