logConditionCheck function
void
logConditionCheck(})
Helper for logging condition checks
Implementation
void logConditionCheck(
String component,
String condition, {
required bool result,
Map<String, dynamic>? data,
String? entityId,
String? gesturePhase,
}) {
final resultStr = result ? 'PASS' : 'FAIL';
logGestureDebug(
GestureDebugEventType.conditionCheck,
component,
'Condition "$condition": $resultStr',
data: data,
entityId: entityId,
gesturePhase: gesturePhase,
severity: result ? GestureDebugSeverity.debug : GestureDebugSeverity.warn,
);
}