itemType method
The global attribute itemtype specifies the URL of the vocabulary that will be used to define itemprop's (item properties) in the data structure. Read more...
Implementation
WidgetElement itemType(String url, {bool? removeIf}) {
if (removeIf != true && node.attrs != null) {
VirtualAttr attr = VirtualAttr('itemtype', url);
node.attrs!.add(attr);
}
return this;
}