dir method

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

The dir global attribute that indicates the directionality of the element's text. Read more...

Implementation

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