touchUp method

bool touchUp(
  1. int index
)

Returns true if the finger has left the touch screen device.

The index is the order of the touches that have been made. The first finger that touches the screen will be assigned index 0. The next finger will be assigned 1 and so on.

Implementation

bool touchUp(int index) {
  if (index < 0 || index >= _touchState.length) {
    return false;
  }
  return _touchState[index].up;
}