notNull<T> static method

FormeValidator<T> notNull<T>({
  1. String errorText = '',
})

when valid

  1. value is not null

Implementation

static FormeValidator<T> notNull<T>({String errorText = ''}) {
  return (f, T v) => v == null ? errorText : null;
}