charSet method

Meta charSet(
  1. String charSet, {
  2. bool? removeIf,
})

This attribute declares the document's character encoding. Read more...

Implementation

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