thisIs method
The is global attribute allows you to specify that a standard HTML element should behave like a defined custom built-in element (see Using custom elements for more details). Read more...
Implementation
WidgetElement thisIs(String elementName, {bool? removeIf}) {
if (removeIf != true && node.attrs != null) {
VirtualAttr attr = VirtualAttr('is', elementName);
node.attrs!.add(attr);
}
return this;
}