pointerUp method
Ends the touch and returns the tab it chose: the one nearest the lens, which is under the finger.
Implementation
int pointerUp({double? time}) {
if (_reported == null) {
return _selected;
}
_selected = nearestTab(_clampToBar(_fromBarX(_reported!.dx)));
_reported = null;
_pending.add(_TouchEvent(_Touch.up, time, null));
return _selected;
}