where method
Adds a SQL predicate to the related rows, combined with earlier filters.
Implementation
Relation<R, F> where(Expr<bool?> Function(F) predicate) {
final next = predicate(queryFields);
return copyQuery(
queryState.copy(predicate: queryState.predicate?.and(next) ?? next),
);
}