describeCondition function
Human-readable condition, as shown in traces (describeCondition).
Implementation
String describeCondition(Object? c) {
final value = jsGet(c, 'value');
final v = value is List ? jsJoin(value, ', ') : (isUndefined(value) ? '' : jsString(value));
final op = jsGet(c, 'op');
final key = jsString(op);
final word = _words[key] ?? objectProtoStrings[key] ?? 'undefined';
if (op == 'segment' || op == 'not_segment') return '$word $v';
final attribute = jsString(jsGet(c, 'attribute'));
if (op == 'exists' || op == 'not_exists') return '$attribute $word';
return '$attribute $word $v';
}