type method
This attribute indicates the type of script represented. Read more...
Implementation
Script type(String scriptType, {bool? removeIf}) {
if (removeIf != true && node.attrs != null) {
VirtualAttr attr = VirtualAttr('type', scriptType);
node.attrs!.add(attr);
}
return this;
}