isPointerAllowed method Null safety
- PointerDownEvent event
protected">@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 _supportedDevices == null || _supportedDevices!.contains(event.kind);
}