lang method

WidgetElement lang(
  1. String langCode, {
  2. bool? removeIf,
})
inherited

The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user. Read more...

Implementation

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