display method

  1. @override
String display()
override

Same text is converted, no readable.

So, the method result is used for UI to display.

Implementation

@override
String display() {
  final sb = StringBuffer();
  for (final item in items) {
    if (sb.isNotEmpty) {
      sb.write(' ${item.logicalType == LogicalType.and ? 'AND' : 'OR'} ');
    }
    sb.write(item.display());
  }

  return '( $sb )';
}