text property

  1. @override
String get text
override

The text of the condition.

Implementation

@override
String get text {
  if (needCheck && _checkDateColumn(column)) {
    assert(
      needCheck && _checkDateColumn(column),
      'The column: $column is date type, please use DateColumnWhereCondition',
    );
    return '';
  }

  if (needCheck && !_checkOtherColumn(column)) {
    assert(
      needCheck && !_checkOtherColumn(column),
      'The $column is not support the platform, please check.',
    );
    return '';
  }

  final sb = StringBuffer();
  sb.write(column);
  if (operator != null) {
    sb.write(' ${operator!} ');
  }
  if (value != null) {
    sb.write(value!);
  }
  return sb.toString();
}