srcLang method

Track srcLang(
  1. String langCode, {
  2. bool? removeIf,
})

Language of the track text data. Read more...

Implementation

Track srcLang(String langCode, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('srclang', langCode);
    node.attrs!.add(attr);
  }
  return this;
}