min<T> static method

FormeValidator<T> min<T>(
  1. double min, {
  2. String errorText = '',
})

when valid

  1. value is null
  2. value is >= min

Implementation

static FormeValidator<T> min<T>(double min, {String errorText = ''}) {
  return (f, T v) => (v != null && v as num < min) ? errorText : null;
}