SupportsOperation constructor

SupportsOperation(
  1. SupportsCondition left,
  2. SupportsCondition right,
  3. String operator,
  4. FileSpan span,
)

Implementation

SupportsOperation(this.left, this.right, this.operator, this.span) {
  var lowerOperator = operator.toLowerCase();
  if (lowerOperator != "and" && lowerOperator != "or") {
    throw ArgumentError.value(
        operator, 'operator', 'may only be "and" or "or".');
  }
}