judgeExist method

bool judgeExist(
  1. PointerEvent event
)

Implementation

bool judgeExist(PointerEvent event) {
  var original = event.original;
  if (original != null) {
    if (_pointerEventHistory.contains(original)) {
      return true;
    } else {
      _pointerEventHistory.add(original);
      if (_pointerEventHistory.length > 50) {
        _pointerEventHistory.removeRange(0, 30);
      }
    }
  }
  return false;
}