notEmpty static method
when valid
- value is null
- value's length > 0
Implementation
static FormeValidator notEmpty({String errorText = ''}) {
return (f, dynamic v) {
if (v == null) {
return errorText;
}
if (_getLength(v) == 0) {
return errorText;
}
return null;
};
}