isHostTouch static method

bool isHostTouch(
  1. PointerDownEvent e
)

The observer, once per pointer down: true when this touch is the user's touch on the host app. Consumes the SDK mark, so it only ever exempts the touch it came with — call it exactly once per down.

Implementation

static bool isHostTouch(PointerDownEvent e) {
  final sdk = _sdkPointers.remove(e.pointer);
  if (TapExecutor.isAgentPointer(e)) return false;
  return !sdk;
}