popularityNotEqualTo method

QueryBuilder<DictionaryEntry, DictionaryEntry, QAfterWhereClause> popularityNotEqualTo(
  1. double popularity
)

Implementation

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