attach method

void attach(
  1. ValueChanged<int> select,
  2. int index
)

Binds the bar. select is the bar's onTabSelected.

Implementation

void attach(ValueChanged<int> select, int index) {
  _select = select;
  this.index = index;
}