evaluate method
Implementation
@override
bool evaluate(Map<String, dynamic> values) {
final value = getValue(values);
if (expected is String) {
if (value is String) {
return RegExp(expected).hasMatch(value);
}
return false;
}
throw AdapterException(
error: "invalid_operator", reason: "Invalid operator: \$regex");
}