setTabbable method

void setTabbable(
  1. int index
)

Makes the index tab focusable and makes all other tabs unfocusable.

Implementation

void setTabbable(int index) {
  if (index < 0 || index >= _length) return;
  _children.forEach((i) {
    i.tabbable = false;
  });
  _children[index].tabbable = true;
}