termLengthNotEqualTo method

QueryBuilder<DictionaryHeading, DictionaryHeading, QAfterWhereClause> termLengthNotEqualTo(
  1. int termLength
)

Implementation

QueryBuilder<DictionaryHeading, DictionaryHeading, QAfterWhereClause>
    termLengthNotEqualTo(int termLength) {
  return QueryBuilder.apply(this, (query) {
    if (query.whereSort == Sort.asc) {
      return query
          .addWhereClause(IndexWhereClause.between(
            indexName: r'termLength',
            lower: [],
            upper: [termLength],
            includeUpper: false,
          ))
          .addWhereClause(IndexWhereClause.between(
            indexName: r'termLength',
            lower: [termLength],
            includeLower: false,
            upper: [],
          ));
    } else {
      return query
          .addWhereClause(IndexWhereClause.between(
            indexName: r'termLength',
            lower: [termLength],
            includeLower: false,
            upper: [],
          ))
          .addWhereClause(IndexWhereClause.between(
            indexName: r'termLength',
            lower: [],
            upper: [termLength],
            includeUpper: false,
          ));
    }
  });
}