idNotEqualTo method

QueryBuilder<DictionaryEntry, DictionaryEntry, QAfterWhereClause> idNotEqualTo(
  1. Id id
)

Implementation

QueryBuilder<DictionaryEntry, DictionaryEntry, QAfterWhereClause>
    idNotEqualTo(Id id) {
  return QueryBuilder.apply(this, (query) {
    if (query.whereSort == Sort.asc) {
      return query
          .addWhereClause(
            IdWhereClause.lessThan(upper: id, includeUpper: false),
          )
          .addWhereClause(
            IdWhereClause.greaterThan(lower: id, includeLower: false),
          );
    } else {
      return query
          .addWhereClause(
            IdWhereClause.greaterThan(lower: id, includeLower: false),
          )
          .addWhereClause(
            IdWhereClause.lessThan(upper: id, includeUpper: false),
          );
    }
  });
}