evaluateOperation static method
Implementation
static bool evaluateOperation(dynamic left, String operator, dynamic right) {
switch (operator) {
case '>':
return left > right;
case '<':
return left < right;
case '==':
return left == right;
case '!=':
return left != right;
case '>=':
return left >= right;
case '<=':
return left <= right;
default:
return false;
}
}