orderNotEqualTo method

QueryBuilder<AnkiMapping, AnkiMapping, QAfterWhereClause> orderNotEqualTo(
  1. int order
)

Implementation

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