FilterCondition.listLength constructor

const FilterCondition.listLength({
  1. required String property,
  2. required int lower,
  3. required int upper,
})

Filters the results to only include objects where the length of property is between lower (included) and upper (included).

Only list properties are supported.

Implementation

const FilterCondition.listLength({
  required this.property,
  required int lower,
  required int upper,
})  : type = FilterConditionType.listLength,
      value1 = lower,
      include1 = true,
      value2 = upper,
      include2 = true,
      caseSensitive = false,
      epsilon = Query.epsilon,
      assert(lower >= 0 && upper >= 0, 'List length must be positive.'),
      super._();