max<T> static method
when valid
- value is null
- value is <= max
Implementation
static FormeValidator<T> max<T>(double max, {String errorText = ''}) {
return (f, dynamic v) => (v != null && v as num > max) ? errorText : null;
}
when valid
static FormeValidator<T> max<T>(double max, {String errorText = ''}) {
return (f, dynamic v) => (v != null && v as num > max) ? errorText : null;
}