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;
    }
  }
}