isInExp method

Expression<bool> isInExp(
  1. List<Expression<T>> expressions
)

An expression that evaluates to true if this expression resolves to a value that one of the expressions resolve to as well.

For an "is in" comparison with values, use isIn.

Implementation

Expression<bool> isInExp(List<Expression<T>> expressions) {
  if (expressions.isEmpty) {
    return Literal(false);
  }

  return BinaryExpression(
    this,
    BinaryOperator.$in,
    ExpressionTuple(expressions),
  );
}