selectElementsNonTypedValues method

Map<String, String?> selectElementsNonTypedValues(
  1. String? selectors
)

Alias to content.querySelectorAll.

Implementation

Map<String, String?> selectElementsNonTypedValues(String? selectors) {
  var entries = selectElementsNonTyped(selectors).map((e) {
    var k = e.getAttribute('name')?.trim();
    if (k == null || k.isEmpty) {
      k = e.id.trim();
    }
    return MapEntry(k, e.elementValue);
  });
  return Map.fromEntries(entries);
}