type method

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

The content type of the resource specified by data. Read more...

Implementation

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