where method

Query<R, F> where(
  1. Expr<bool?> condition(
    1. F
    )
)

Adds a predicate with AND, preserving any existing filter.

Implementation

Query<R, F> where(Expr<bool?> Function(F) condition) {
  final next = condition(queryFields);
  return copyQuery(
    queryState.copy(predicate: queryState.predicate?.and(next) ?? next),
  );
}