type method

Script type(
  1. String scriptType, {
  2. bool? removeIf,
})

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;
}