custom method
Implementation
JarDate custom(
String? Function(DateTime? 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');
}