queryAllByPlaceholderText

List<DomNode> queryAllByPlaceholderText(

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

Finds all elements with the given placeholder.

Implementation

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