isBetweenValues method

Expression<bool> isBetweenValues(
  1. DT lower,
  2. DT higher,
  3. {bool not = false}
)

Returns an expression evaluating to true if this expression is between lower and higher (both inclusive).

If not is set, the expression will be negated.

Implementation

Expression<bool> isBetweenValues(DT lower, DT higher, {bool not = false}) {
  return _BetweenExpression(
    target: this,
    lower: variable(lower),
    higher: variable(higher),
    not: not,
  );
}