isPointerAllowed method

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

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

Implementation

@protected
bool isPointerAllowed(PointerDownEvent event) {
  return (supportedDevices == null ||
          supportedDevices!.contains(event.kind)) &&
      _allowedButtonsFilter(event.buttons);
}