isPointerAllowed method

  1. @protected
bool isPointerAllowed (PointerDownEvent event)
@protected

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

Implementation

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