eval method
Implementation for this operator.
v1
- Operand 1.
v2
- Operand 2. Null for postfix unary operators
Returns the result of the operation.
Implementation
@override
Decimal eval(Decimal? v1, Decimal? v2) {
if (v2 != null) {
throw ExpressionException(
"Did not expect a second parameter for unary operator");
}
return evalUnary(v1);
}