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