tabIndex method

WidgetElement tabIndex(
  1. int number, {
  2. bool? removeIf,
})
inherited

The tabindex global attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. Read more...

Implementation

WidgetElement tabIndex(int number, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('tabindex', number.toString());
    node.attrs!.add(attr);
  }
  return this;
}