removePointer method

dynamic removePointer(
  1. dynamic event
)

Implementation

removePointer(event) {
  _pointerPositions.remove(event.pointerId);

  for (var i = 0; i < _pointers.length; i++) {
    if (_pointers[i].pointerId == event.pointerId) {
      _pointers.splice(i, 1);
      return;
    }
  }
}