and method

Implementation

QueryPredicateGroup and(QueryPredicate predicate) {
  if (type == QueryPredicateGroupType.and) {
    predicates.add(predicate);
    return this;
  }
  return QueryPredicateGroup(QueryPredicateGroupType.and, [this, predicate]);
}