where method

Relation<R, F> where(
  1. Expr<bool?> predicate(
    1. F
    )
)

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