addAllAttributes method

DOMElement addAllAttributes(
  1. Map<String, dynamic>? attributes
)

Add attributes to this instance.

Implementation

DOMElement addAllAttributes(Map<String, dynamic>? attributes) {
  if (attributes != null && attributes.isNotEmpty) {
    for (var entry in attributes.entries) {
      var name = entry.key;
      var value = entry.value;
      setAttribute(name, value);
    }
  }

  return this;
}