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