max method
Implementation
JarNumber max(num max, [String? message]) {
return addValidator((value) {
if (value == null) return null;
return value <= max
? null
: (message ?? 'Must be less than or equal to $max');
}, 'too_big');
}