logHitTest function

void logHitTest(
  1. String component,
  2. String position,
  3. GraphId? hitEntity, {
  4. Map<String, dynamic>? data,
  5. String? gesturePhase,
})

Helper for logging hit test results

Implementation

void logHitTest(
  String component,
  String position,
  GraphId? hitEntity, {
  Map<String, dynamic>? data,
  String? gesturePhase,
}) {
  final hitStr = hitEntity != null ? 'HIT: $hitEntity' : 'BACKGROUND';
  logGestureDebug(
    GestureDebugEventType.hitTest,
    component,
    'Hit test at $position → $hitStr',
    data: data,
    entityId: hitEntity?.toString(),
    gesturePhase: gesturePhase,
  );
}