type method

A type(
  1. String mediaType, {
  2. bool? removeIf,
})

Hints at the linked URL's format with a MIME type. Read more...

Implementation

A type(String mediaType, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('type', mediaType);
    node.attrs!.add(attr);
  }
  return this;
}