custom method
Implementation
JarBoolean custom(
String? Function(bool? value, [Map<String, dynamic>? allValues])
validator,
[String? message]) {
return addValidator((value) {
if (value == null) return null;
final validationResult = validator(value, getAllValues());
return validationResult ?? null;
}, 'custom');
}