SupportsOperation constructor
SupportsOperation(
- SupportsCondition left,
- SupportsCondition right,
- String operator,
- 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".');
}
}