urlNotEqualTo method

QueryBuilder<BrowserBookmark, BrowserBookmark, QAfterWhereClause> urlNotEqualTo(
  1. String url
)

Implementation

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