translate method

WidgetElement translate(
  1. String value, {
  2. bool? removeIf,
})
inherited

The translate global attribute that is used to specify whether an element's translatable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged. Read more...

Implementation

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