itemProp method

WidgetElement itemProp(
  1. String name, {
  2. bool? removeIf,
})
inherited

The itemprop global attribute is used to add properties to an item. Read more...

Implementation

WidgetElement itemProp(String name, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('itemprop', name);
    node.attrs!.add(attr);
  }
  return this;
}