evaluate method
Implementation
@override
bool evaluate(Map<String, dynamic> values) {
final value = getValue(values);
if (expected is List<int> && expected.length == 2) {
if (value is int) {
return value % expected[0] == expected[1];
}
return false;
}
throw AdapterException(
error: "bad_arg", reason: "Bad argument for operator \$mod: $expected");
}