equalTo method
Implementation
JarBoolean equalTo(String field, [String? message]) {
return addValidator((value) {
if (value == null) return null;
final otherValue = getFieldValue(field);
if (otherValue is! bool?) return null;
return value == otherValue
? null
: (message ?? 'Must be equal to $field');
});
}