distinctBySearchTerm method

QueryBuilder<SearchHistoryItem, SearchHistoryItem, QDistinct> distinctBySearchTerm(
  1. {bool caseSensitive = true}
)

Implementation

QueryBuilder<SearchHistoryItem, SearchHistoryItem, QDistinct>
    distinctBySearchTerm({bool caseSensitive = true}) {
  return QueryBuilder.apply(this, (query) {
    return query.addDistinctBy(r'searchTerm', caseSensitive: caseSensitive);
  });
}