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