setAttributeIn static method

void setAttributeIn(
  1. TreeElement? parent,
  2. List<TreeElement> attributes,
  3. String? namespace,
  4. String name,
  5. String? value,
)

Sets, adds or (with a null value) removes an attribute in attributes, adopted by parent. Port of the static TreeElement.setAttribute.

Implementation

static void setAttributeIn(
  TreeElement? parent,
  List<TreeElement> attributes,
  String? namespace,
  String name,
  String? value,
) => _setAttribute(parent, attributes, namespace, name, value);