select method
The selection changed from outside (or a choice was not taken up).
Implementation
void select(int index) {
if (index == _selected) {
return;
}
_selected = index.clamp(0, _count - 1);
if (_touch == null && _reported == null) {
final double x = lensX, v = _lensVelocity;
_anchor = tabCenter(_selected);
_offset
..configure(_settle.$1, _settle.$2)
..value = x - _anchor
..velocity = v
..target = 0;
_shadow.configure(_settle.$1, _settle.$2);
_logAnchor(_now);
}
}