srcDoc method

IFrame srcDoc(
  1. String doc, {
  2. bool? removeIf,
})

Inline HTML to embed, overriding the src attribute. Read more...

Implementation

IFrame srcDoc(String doc, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('srcdoc', doc);
    node.attrs!.add(attr);
  }
  return this;
}