a method

DocumentHead a(
  1. String name,
  2. dynamic value, {
  3. bool? removeIf,
})

Allows to create a custom HTML attribute, for example, if you can't find the desired one.

Implementation

DocumentHead a(String name, dynamic value, {bool? removeIf}) {
  if (removeIf == true) {
    head.removeAttribute(name);
  } else {
    head.setAttribute(name, value.toString());
  }
  return this;
}