isPointerAllowed method

  1. @protected
bool isPointerAllowed (
  1. PointerDownEvent event
@protected, inherited

Checks whether or not a pointer is allowed to be tracked by this recognizer.


bool isPointerAllowed(PointerDownEvent event) {
  // Currently, it only checks for device kind. But in the future we could check
  // for other things e.g. mouse button.
  return _kindFilter == null || _kindFilter == event.kind;