Filter constructor

Filter({
  1. Iterable<Condition>? should,
  2. Iterable<Condition>? must,
  3. Iterable<Condition>? mustNot,
  4. MinShould? minShould,
})

Implementation

factory Filter({
  $core.Iterable<Condition>? should,
  $core.Iterable<Condition>? must,
  $core.Iterable<Condition>? mustNot,
  MinShould? minShould,
}) {
  final $result = create();
  if (should != null) {
    $result.should.addAll(should);
  }
  if (must != null) {
    $result.must.addAll(must);
  }
  if (mustNot != null) {
    $result.mustNot.addAll(mustNot);
  }
  if (minShould != null) {
    $result.minShould = minShould;
  }
  return $result;
}