isarIdNotEqualTo method

QueryBuilder<DictionaryTag, DictionaryTag, QAfterWhereClause> isarIdNotEqualTo(
  1. Id isarId
)

Implementation

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