where method
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),
);
}