hiddenLanguagesNotEqualTo method

QueryBuilder<Dictionary, Dictionary, QAfterWhereClause> hiddenLanguagesNotEqualTo(
  1. List<String> hiddenLanguages
)

Implementation

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