String? notEmptyValidator(String? text) { if (text != null) { if (text.isEmpty) { return 'Este campo es requerido'; } else { return null; } } return null; }