isBetweenValues method

BetweenExpression 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

BetweenExpression isBetweenValues(DT lower, DT higher, {bool not = false}) {
  return BetweenExpression._(
    target: this,
    lower: variable(lower),
    higher: variable(higher),
    not: not,
  );
}