statusBetween method

QueryBuilder<DownloadTask, DownloadTask, QAfterFilterCondition> statusBetween(
  1. DownloadStatus lower,
  2. DownloadStatus upper, {
  3. bool includeLower = true,
  4. bool includeUpper = true,
})

Implementation

QueryBuilder<DownloadTask, DownloadTask, QAfterFilterCondition> statusBetween(
  DownloadStatus lower,
  DownloadStatus upper, {
  bool includeLower = true,
  bool includeUpper = true,
}) {
  return QueryBuilder.apply(this, (query) {
    return query.addFilterCondition(FilterCondition.between(
      property: r'status',
      lower: lower,
      includeLower: includeLower,
      upper: upper,
      includeUpper: includeUpper,
    ));
  });
}