thisClass method

WidgetElement thisClass(
  1. List<String> nameList, {
  2. bool? removeIf,
})
inherited

The class global attribute is a list of the case-sensitive classes of the element. Read more...

Implementation

WidgetElement thisClass(List<String> nameList, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('class', _html.listToSpaces(nameList));
    node.attrs!.add(attr);
  }
  return this;
}