termBetween method

QueryBuilder<DictionaryHeading, DictionaryHeading, QAfterWhereClause> termBetween(
  1. String lowerTerm,
  2. String upperTerm,
  3. {bool includeLower = true,
  4. bool includeUpper = true}
)

Implementation

QueryBuilder<DictionaryHeading, DictionaryHeading, QAfterWhereClause>
    termBetween(
  String lowerTerm,
  String upperTerm, {
  bool includeLower = true,
  bool includeUpper = true,
}) {
  return QueryBuilder.apply(this, (query) {
    return query.addWhereClause(IndexWhereClause.between(
      indexName: r'term',
      lower: [lowerTerm],
      includeLower: includeLower,
      upper: [upperTerm],
      includeUpper: includeUpper,
    ));
  });
}