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