text property
The text of the condition.
Implementation
@override
String get text {
if (items.isEmpty) {
return '';
}
final sb = StringBuffer();
for (final item in items) {
final text = item.text;
if (text.isEmpty) {
continue;
}
if (sb.isNotEmpty) {
sb.write(' ${item.logicalType == LogicalType.and ? 'AND' : 'OR'} ');
}
sb.write(item.text);
}
return '( $sb )';
}