type method

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

The MIME media type of the image or other media type, optionally with a codecs parameter. Read more...

Implementation

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