isPointerAllowed method
Checks whether or not a pointer is allowed to be tracked by this recognizer.
Implementation
@override
bool isPointerAllowed(PointerEvent event) {
if (!(shouldAcceptTouchAtPosition?.call(event.position) ?? true)) {
return false;
}
return super.isPointerAllowed(event);
}