a method

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

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

Implementation

WidgetElement a(String name, dynamic value, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr(name, value.toString());
    node.attrs!.add(attr);
  }
  return this;
}